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

Wiki title highlighting only after reload #406

Open
RedstoneFuture opened this issue Jan 22, 2022 · 1 comment
Open

Wiki title highlighting only after reload #406

RedstoneFuture opened this issue Jan 22, 2022 · 1 comment
Labels
bug Confirmed issues with the application

Comments

@RedstoneFuture
Copy link

RedstoneFuture commented Jan 22, 2022

grafik

The title highlighting are only active correctly, after a page reloading. That means, if you use the content table to switch between articles, the highlighting is wrong until you reload the page.

Tested with FireFox 96.0.2 on WIN10.

@lucko lucko changed the title title highlighting only after reload Wiki title highlighting only after reload Mar 20, 2022
@lucko lucko transferred this issue from LuckPerms/wiki Mar 20, 2022
@Turbotailz
Copy link
Member

I believe this is because of vue-router programmatically updating the window location, it's not a native page load event when you navigate the website. I don't think the :target selector (which I've used to highlight the headings) can check when the URL is updated via JavaScript.

I couldn't find any solutions to this when I was building it initially. I could probably come up with a hacky workaround, though.

@Turbotailz Turbotailz added the bug Confirmed issues with the application label Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed issues with the application
Projects
None yet
Development

No branches or pull requests

2 participants