Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mark the current nav item as active properly #8

Open
Kruhlmann opened this issue Aug 11, 2019 · 0 comments
Open

Unable to mark the current nav item as active properly #8

Kruhlmann opened this issue Aug 11, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Kruhlmann
Copy link
Member

It's proven difficult to make the nav bar show the current active page. I initially wanted to use the page.path parameter in the preload function of _layout.svelte but that did not work.

I settled on a local store called current_page which worked, until I realized it is also being changed by the rel=prefetch property present in the nav bar anchor tags.

@Kruhlmann Kruhlmann added the bug Something isn't working label Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant