From dbce2491fe5d7dc17dcb2a44bac5479355be1b3f Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Thu, 9 Nov 2017 15:27:17 +0100 Subject: [PATCH] [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 --- addons/website/static/src/js/menu/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"),