diff options
| author | Christophe Matthieu <chm@odoo.com> | 2019-02-18 14:00:19 +0000 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2019-02-19 08:43:51 +0000 |
| commit | e3ad11d97244b8fb8a2ad244066b6219fe2b9b85 (patch) | |
| tree | 4444775eb385556ea165808bc450d5a2b74b1f0a /addons/website/static/src/js/menu/edit.js | |
| parent | 832357f0b72d39519bfcf37a6fa0317081947e6b (diff) | |
[FIX] website: remove 'enable_editor' from the URL before edition
Diffstat (limited to 'addons/website/static/src/js/menu/edit.js')
| -rw-r--r-- | addons/website/static/src/js/menu/edit.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website/static/src/js/menu/edit.js b/addons/website/static/src/js/menu/edit.js index a67e65f4b9b..88a45fb10dc 100644 --- a/addons/website/static/src/js/menu/edit.js +++ b/addons/website/static/src/js/menu/edit.js @@ -40,6 +40,8 @@ var EditPageMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ }, }); this._editorAutoStart = (context.editable && window.location.search.indexOf('enable_editor') >= 0); + var url = window.location.href.replace(/([?&])&*enable_editor[^&#]*&?/, '\$1'); + window.history.replaceState({}, null, url); }, /** * Auto-starts the editor if necessary or add the welcome message otherwise. |
