Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.
fuel_nav active class looking to location or nav key?
Hi, let's say I have the following navigation structure:
- Company Part 1
-- Part 1 Home
-- Part 1 etc
- Company Part 2
-- Part 2 Home
-- Part 2 etc.
Basically Company Part 1 and Part 1 Home are referring to the same url, let's say /part1
But for the design I created this structure and using the parent option in fuel_nav.
For Company Part 1 and Part 1 Home, I have to use different Nav Key's because FUEL doesn't allow you to create duplicates. The problem now is that the active class won't work because of these duplicates. So my question is: Is the active class looking to the nav key, or the location to check if the navigation element is the active url?
I should say it should look to the location of the navigation element and compare it with the current url.