[FIX] website: child menus without url.
This is possible to have a child menu without URL. The condition checking if the `active` class must be added or not must take that into account. opw-653132
This commit is contained in:
parent
780cfba3c6
commit
e6a3852c1f
|
@ -40,7 +40,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li t-if="submenu.child_id" t-attf-class="dropdown #{
|
<li t-if="submenu.child_id" t-attf-class="dropdown #{
|
||||||
(submenu.url and submenu.url != '/' and any([request.httprequest.path == child.url.replace('/page/website.', '/page/') for child in submenu.child_id]) or
|
(submenu.url and submenu.url != '/' and any([request.httprequest.path == child.url.replace('/page/website.', '/page/') for child in submenu.child_id if child.url]) or
|
||||||
(submenu.url and request.httprequest.path == submenu.url.replace('/page/website.', '/page/'))) and 'active'
|
(submenu.url and request.httprequest.path == submenu.url.replace('/page/website.', '/page/'))) and 'active'
|
||||||
}">
|
}">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
|
|
Loading…
Reference in New Issue