gbdev / pandocs

The single, most comprehensive Game Boy technical reference.
https://gbdev.io/pandocs/
Creative Commons Zero v1.0 Universal
593 stars 91 forks source link

Anchor links not working in Chromium based browsers #38

Closed mattrberry closed 3 years ago

mattrberry commented 4 years ago

Links to headers like https://gbdev.io/pandocs/#vram-background-maps seem to work in Firefox but not in Chrome

basxto commented 4 years ago

If that does not work, then your browser does not support html5.

avivace commented 4 years ago

I can confirm I can reproduce this on Chromium 81.0.4044.92 on Debian Sid. Thanks @mattrberry

JL2210 commented 4 years ago

I've been noticing this issue on other websites, too. If you click a link to a header it just sends you to the page instead of the header. I think it's a Chromium bug. or it might not be, it seems to work on some sites (for example https://pineight.com/nes/mapperwizard.html#tgrom).

Chrome OS stable 83.0.4103.77

mattrberry commented 4 years ago

Yeah, whether or not it's a chromium bug, there are still some sites that behave as expected. Here's another working example in case it helps: https://rednex.github.io/rgbds/gbz80.7.html#DEC_HL

Chrome 83.0.4103.61 on Ubuntu

basxto commented 4 years ago

On 83.0.4103.61 it only breaks for me when I allow JavaScript in uMatrix.

avivace commented 4 years ago

Related: https://stackoverflow.com/questions/38588346/anchor-a-tags-not-working-in-chrome-when-using

and how to inject it: https://github.com/vuejs/vuepress/issues/790