Skip to content

Commit

Permalink
add parent location search
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsx committed Dec 27, 2016
1 parent ea0e096 commit eab9e85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
$(dialog.parts.title.$).text(this.options.lang.edit);

var textPluginUrl = window.location.href;
var path = encodeURIComponent(window.parent.location.pathname);
var path = encodeURIComponent(window.parent.location.pathname + window.parent.location.search);
var childPluginUrl = textPluginUrl.replace(
/(add-plugin|edit-plugin).*$/,
'edit-plugin/' + id + '/?_popup=1&no_preview&cms_history=0&cms_path=' + path
Expand Down
Loading

0 comments on commit eab9e85

Please sign in to comment.