Skip to content

Commit b022c00

Browse files
committed
[FIX] website: do not redirect after editing menus from the builder
Steps to reproduce: - Edit a page - Click on a menu item and click on the "Edit menu" icon - Add an item and save => The iframe is reloaded, but leads to a 404 instead of staying on the same page. This is because when passing a URL to `reloadEditor`, the given string is then encoded with `encodeURIComponent`, which will append the string to the current domain. We can just leave the parameter empty.
1 parent 2e9b9d5 commit b022c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/website/static/src/builder/plugins/menu_data_plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class MenuDataPlugin extends Plugin {
4545
onClickEditMenu: () => {
4646
this.services.dialog.add(EditMenuDialog, {
4747
save: () => {
48-
this.config.reloadEditor({ url: this.document.URL });
48+
this.config.reloadEditor();
4949
},
5050
});
5151
},

0 commit comments

Comments
 (0)