LuckPermsWeb
LuckPermsWeb copied to clipboard
Wiki title highlighting only after reload

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.
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.