diff options
| author | Romain Derie <rde@odoo.com> | 2017-11-09 15:27:17 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2017-11-10 16:39:01 +0100 |
| commit | dbce2491fe5d7dc17dcb2a44bac5479355be1b3f (patch) | |
| tree | e601d38840b314f09bb483724828db816e9e3911 /addons/website | |
| parent | 996a817071a3b95f37f85a30f59b82e1a493951b (diff) | |
[FIX] website: Incorrect 'Go to page' link in page properties dialog
Before this commit, clicking on 'Go to page' in a page properties dialog would
redirect user to an incorrect link (relative vs absolute) because the link
would not have a leading slash. (We removed it earlier to hide it in the input)
Now, the link is correct
Diffstat (limited to 'addons/website')
| -rw-r--r-- | addons/website/static/src/js/menu/content.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/menu/content.js b/addons/website/static/src/js/menu/content.js index ccba660466f..5d823128bd2 100644 --- a/addons/website/static/src/js/menu/content.js +++ b/addons/website/static/src/js/menu/content.js @@ -45,7 +45,7 @@ var PagePropertiesDialog = widget.Dialog.extend({ {text: _t("Discard"), close: true}, ]; if (options.fromPageManagement) { - buttons.push({text: _t("Go To Page"), icon: "fa-globe", classes: "btn-link pull-right", click: function(e){window.location.href = self.page.url;}}); + buttons.push({text: _t("Go To Page"), icon: "fa-globe", classes: "btn-link pull-right", click: function(e){window.location.href = '/' + self.page.url;}}); } this._super(parent, _.extend({}, { title: _t("Page Properties"), |
