diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index e1252e0e23b..5bb0f610500 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -77,7 +77,7 @@ class Website(Home): else: top_menu = request.website.menu_id first_menu = top_menu and top_menu.child_id and top_menu.child_id.filtered(lambda menu: menu.is_visible) - if first_menu and first_menu[0].url not in ('/', '') and (not (first_menu[0].url.startswith(('/?', '/#', ' ')))): + if first_menu and first_menu[0].url not in ('/', '', '#') and (not (first_menu[0].url.startswith(('/?', '/#', ' ')))): return request.redirect(first_menu[0].url) raise request.not_found()