From fd0de2261ec76e6e8ae9ce1a2d41cd79d585dda9 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Thu, 3 Oct 2019 12:26:13 +0000 Subject: [IMP] website: Remove hardcoded domains from website menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A common software development pattern is to have the same data replicated across different environments, such as production and staging. This happens i.e. in Odoo.sh. Let's assume your production instance is in ``https://www.example.com`` and your staging one is in ``https://staging.example.com``. Then: 1. A user in production modifies a website menu and makes it link to ``https://www.example.com/my-cool-page``. 1. A new change lands in staging, with a fresh copy of the production database. 1. The user goes to ``https://staging.example.com`` and navigates through the menus to validate the changes. 1. While navigating, he clicks in the website menu that links to ``https://www.example.com/my-cool-page``. 1. He makes some changes. **He didn't realize he was modifying production**. To avoid this kind of problems, if a user pastes a link that starts with the current domain, it gets removed. closes odoo/odoo#35715 Signed-off-by: Jérémy Kersten (jke) --- addons/web_editor/static/src/xml/wysiwyg.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/web_editor/static/src/xml') diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml index bcf3a480a93..4c5ffaa50c2 100644 --- a/addons/web_editor/static/src/xml/wysiwyg.xml +++ b/addons/web_editor/static/src/xml/wysiwyg.xml @@ -440,6 +440,12 @@
+
+ + +
-- cgit v1.2.3