Skip to content

Commit

Permalink
use correct cms_path
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsx authored and czpython committed Jan 2, 2017
1 parent 8be5c4e commit e2f423c
Show file tree
Hide file tree
Showing 2 changed files with 1,183 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
$(dialog.parts.title.$).text(this.options.lang.edit);

var textPluginUrl = window.location.href;
var path = encodeURIComponent(window.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 Expand Up @@ -311,7 +311,7 @@
plugin_type: item.attr('rel'),
plugin_parent: this.options.plugin_id,
plugin_language: this.options.plugin_language,
cms_path: window.location.pathname,
cms_path: window.parent.location.pathname,
cms_history: 0
};

Expand Down
Loading

0 comments on commit e2f423c

Please sign in to comment.