summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorannikaC2018-06-25 20:58:36 (GMT)
committerJoseph Olstad2018-06-25 20:58:36 (GMT)
commit9c482f86e490fd4b5e686d2c8a87a63506ebafe2 (patch)
treebe9a7614fb569fc53682972bb677a1aa0a16d168
parent1cd77ffa9c2cf96d80b76d47318179a8a82f0d46 (diff)
Issue #2933390 by annikaC: "Edit file" in Media Browser should return to Media Browser
-rw-r--r--modules/media_wysiwyg/includes/media_wysiwyg.pages.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/media_wysiwyg/includes/media_wysiwyg.pages.inc b/modules/media_wysiwyg/includes/media_wysiwyg.pages.inc
index c126058..a3404de 100644
--- a/modules/media_wysiwyg/includes/media_wysiwyg.pages.inc
+++ b/modules/media_wysiwyg/includes/media_wysiwyg.pages.inc
@@ -180,6 +180,7 @@ function media_wysiwyg_format_form_view_mode(&$form, $form_state, $file) {
'class' => 'button',
'title' => t('Use for replace fox or edit file fields.'),
),
+ 'query' => drupal_get_destination(),
);
if (!empty($_GET['render'])) {
$link_options['query']['render'] = $_GET['render'];