$ /usr/lib/i386-linux-gnu/webkit2gtk-4.0/MiniBrowser https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html#shortcuts Or just enter it from the URL bar. Anchor ignored! You know anchors are as old as the web. They are basic. Hence a major bug. Checking the bug database, they used to work, but not anymore. Any fixes should also work for local file:/// 's , too, from the UNIX command line or from the URL bar. libwebkit2gtk-4.0-37: Installed: 2.17.4-1 https://bugzilla.gnome.org/show_bug.cgi?id=784930
https://bugzilla.gnome.org/show_bug.cgi?id=784432
Trying to navigate to this URL from the location field of any browser available to me (Chrome, Firefox, Safari), none of them scroll directly to the anchor.
Created attachment 315583 [details] Test with a link to that URL Attaching an HTML file with a link to that URL Opening this HTML file and then clicking that link also doesn't work in WebKit. But, it also doesn't work in any other browser.
Also, anchors work fine in WebKit in general, so retitling this bug to make that clear.
I'm guessing this is because in absolute URLs, once you start the query parameter with '?', any '#' after that is part of the query. But then once you're on the page, clicking the "#shortcuts" link works fine because it's a relative URL, not absolute. (This is a theory, checking the URL parser now)
(In reply to Brady Eidson from comment #5) > I'm guessing this is because in absolute URLs, once you start the query > parameter with '?', any '#' after that is part of the query. > > But then once you're on the page, clicking the "#shortcuts" link works fine > because it's a relative URL, not absolute. > > (This is a theory, checking the URL parser now) This seems wrong. Hmmm. I dunno. It's probably not a coincidence that this also doesn't work in any other browser. CC'ed Alex the URL guy.
Opens fine in the lynx and w3m. OK http://jidanni.org/location/directions/index.html#chain works OK in webkit. file:///home/jidanni/jidanni.org/location/directions/index.html#chain ends up with the #chain removed before processing.(Not by the shell.)
(In reply to Brady Eidson from comment #4) > Also, anchors work fine in WebKit in general, so retitling this bug to make > that clear. Anchors have been super broken in WebKitGTK+ for as long as I remember.
OK sorry. It must be due to some javascript in their page. So I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1381333 .