Skip to content
Snippets Groups Projects
Commit e0ed6580 authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] website: if the first menu refered to a website page and the route for...

[FIX] website: if the first menu refered to a website page and the route for this path is overwrited, the route is not used, the template has not the values of the route. (e.g. contact-us menu in first position if website_crm is installed)
parent 95cc7054
Branches
Tags
No related merge requests found
......@@ -40,8 +40,7 @@ class Website(openerp.addons.web.controllers.main.Home):
if not (first_menu.url.startswith(('/page/', '/?', '/#')) or (first_menu.url=='/')):
return request.redirect(first_menu.url)
if first_menu.url.startswith('/page/'):
page = first_menu.url[6:]
return request.registry['ir.http'].reroute(first_menu.url)
return self.page(page)
@http.route(website=True, auth="public")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment