From c9d41679fbeebf244a75964f8875f9b6c6c9f4e1 Mon Sep 17 00:00:00 2001 From: Mathias Neef Date: Fri, 14 Aug 2015 16:57:53 +0200 Subject: [FIX] website*: `active` class in menu In the top menu bar, the `active` class is set when the menu url matches the page url (the url in the browser url bar) A while ago, we made so all urls `/page/website.***' were automatically redirected to `/page/****` Therefore, if the menu url still contains this `website.` prefix, the active class wasn't set on it, while it should. Fixes #3059 Closes #3070 --- addons/website/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website/controllers/main.py') diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 1dce8d28488..cd9f7e0d601 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -176,7 +176,7 @@ class Website(openerp.addons.web.controllers.main.Home): model, id = request.registry["ir.model.data"].get_object_reference(request.cr, request.uid, 'website', 'main_menu') request.registry['website.menu'].create(request.cr, request.uid, { 'name': path, - 'url': "/page/" + xml_id, + 'url': "/page/" + xml_id[8:], 'parent_id': id, }, context=request.context) # Reverse action in order to allow shortcut for /page/ -- cgit v1.2.3