-
- Downloads
[FIX] website: prevent endless loop if homepage is unpublished..
.. and first menu is a container with # as url.
There is a particular case where the / url would loop endlessly.
1. Unpublished the homepage /
2. Edit the menu so the first menu is a container. There is a hint telling you
a container menu should have its URL set to `#` as a good practice.
3. This will lead to endless loop for public user as the code will check if the
homepage can be accessed. Since it is unpublished, it will then fallback on
the first menu which is not '/' and redirect to it.
Sadly, the code was not expecting `#` to be handled as `/`.
opw-2081969
closes odoo/odoo#38219
Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
Please register or sign in to comment