Skip to Content
Menu
This question has been flagged
1992 Views

I am developing a website with Odoo 14 and I have same pages that share same sidebar navigation. I gave manually the links of related pages. I want to give active class to the navigation item of the current page. How can I achieve that? My navigation is so simple and you can see below. If I can give active class automatically, I will convert it to a template and call it directly in all these pages.


I also have tried to use request.httprequest.path but I couldn't succeed. I thought maybe I can use as if the current page path is equal to the link of the nav element, give active class.


nav:



                
                
                
Avatar
Discard
Related Posts Replies Views Activity
2
Jun 22
1712
1
Apr 22
949
0
Feb 22
3240
1
Jan 22
1074
1
Jan 21
2047