LuckPermsWeb icon indicating copy to clipboard operation
LuckPermsWeb copied to clipboard

Wiki title highlighting only after reload

Open RedstoneFuture opened this issue 3 years ago • 1 comments

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.

RedstoneFuture avatar Jan 22 '22 12:01 RedstoneFuture

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 avatar Mar 20 '22 14:03 Turbotailz