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.