From 19b5ba2b08476ea2ede46ab7cf482526c47e62c8 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 14 Aug 2015 17:02:53 +0200 Subject: [PATCH] [FIX] website: condition to flag a menu as `active` in the top menu 1. A menu with `/page/website.***` should be flagged as `active` if the current url is `/page/***`. This is a retro-compatibility patch for c9d41679fbeebf244a75964f8875f9b6c6c9f4e1, so the menu is marked as active without having to rename it, by removing this `website.` thing. 2. If you defined two menus with as url `/page/test` and `/page/test2` Both menus were flagged as `active` when you browsed the url `/page/test2`, because it started by both menus urls. Fixes #3059 Closes #3070 --- addons/website/views/website_templates.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index b2255ac50ea..6febb78f87e 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -33,16 +33,15 @@