I'm trying out for the first time to develop a test website using Laravel and I'm following a video tutorial on youtube. Everything is going relatively well, but I have a small question that needed your help.
I have a menu with 6 buttons:
li class="principal {{ Request::is('pt/sport/homepage') ? "active" : "" }}"><a href="#">HOMEPAGE</a></li
li class="principal {{ Request::is('pt/sport/quem-somos') ? "active" : "" }}"><a href="#">QUEM SOMOS</a></li
li class="principal {{ Request::is('pt/sport/projetos', 'pt/sport/projetos/$projetoSlug') ? "active" : "" }}"><a href="#">PROJETOS</a></li
li class="principal {{ Request::is('pt/sport/produtos') ? "active" : "" }}"><a href="#">PRODUTOS</a></li
li class="principal {{ Request::is('pt/sport/metodologia') ? "active" : "" }}"><a href="#">METODOLOGIA</a></li
li class="principal {{ Request::is('pt/sport/contatos') ? "active" : "" }}"><a href="#">CONTATOS</a></li
The active state is working perfectly, but in the "Projects" and "Products" pages there will be a photo grid, which in turn, when clicking on one of the photos, will go to an individual project presentation page or product. Until everything is ok.
My question is this: When I click on Projects, my photos grid appears and the button stays active, but after clicking the photo to open the project individually (who has a photo gallery) the projects button is no longer active.
How do I keep the "Projects" button active?