How to force a page to reload if all what was changed in url is hash?

后端 未结 4 2148
没有蜡笔的小新
没有蜡笔的小新 2020-12-14 00:06

I am trying to reload current page with different url hash, but it doesn\'t work as expected.

(Clarification how I want it to work: Reload the page and then scroll t

4条回答
  •  囚心锁ツ
    2020-12-14 00:27

    Remove the anchor you're going to navigate to, then use approach #2? Since there's no anchor, setting the hash shouldn't scroll the page.

提交回复
热议问题