Settings

Theme

Chrome anchors are broken, Google has locked and is ignoring bug thread

support.google.com

85 points by arghblarg 5 years ago · 15 comments

Reader

rohansingh 5 years ago

Nothing to see here:

  Thought it was a bug but it's just a feature difference between browsers.
  
  The first time the page loads with an anchor in the url: `http://somesite.com/#gohere` it should load and go to that location on the page.
  
  But if you scroll to the bottom for example, then reload the page or put the cursor in the URL bar and press "Return/Enter"... the page will simply reload exactly where you are.
  • barbegal 5 years ago

    Yeah there are two competing needs here. Users expect to stay in the same location on the page if they refresh it or if they go to another page and use the back button. Users also expect that when the URL contains an anchor then they go to the location of that anchor. It's a tough issue to find the balance between these two user needs but I think the behaviour implemented by Chrome is good. These days it is very rare that a user refreshes a page, and when they do most users expect to stay in the same location on the page.

    • arghblargOP 5 years ago

      OP here. It doesn't go to 'the same location on the page', that's the problem. It always jumps to the top of the page, as if the anchor didn't exist.

      Note there is, in my case, a form submit action to a hidden iframe with the reload but the page location stays put in Firefox.

    • _y5hn 5 years ago

      I refresh pages and use enter all the time. In fact, it's a constant battle to use any modern webpage.

  • arghblargOP 5 years ago

    But if the reload is triggered by a form submit to an iframe (thus staying on the page) with a timed call to window.reload(), the page resets to the top. Not so in Firefox.

  • falcolas 5 years ago

    It's not a "feature difference". It's a change since it worked in a prior version of Chrome.

adrianmonk 5 years ago

Isn't this from 8-12 months ago?

That thread looks like it was created on 8/14/19 and the last comment was made 1/14/20.

I think I did notice some issue with anchors, but if so, this doesn't seem like the right support thread.

EDIT: Also the title mentions Chrome 76, and I'm on Chrome 85.

esprehn 5 years ago

This is not a bug thread, it's a community support forum.

Please file bugs at https://crbug.com/

cmwelsh 5 years ago

I noticed this at work when creating anchor links within our wiki - I thought perhaps I was doing something wrong. Can you elaborate on the submission title?

jackinloadup 5 years ago

This tells me either they don't have to pass their automated testing suite to do releases, or worst of all the functionality is broken on purpose. Anchors are HTML 101. Something is really messed up somewhere for this to be an issue for 8 production releases now. This started in Chrome 76 and 84 is the current version.

javajosh 5 years ago

That's odd, I use Chrome and haven't seen anything amiss. Can someone provide a Codepen or something that demonstrates the issue?

ChrisArchitect 5 years ago

(2019)

monkpit 5 years ago

That workaround though...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection