Safari ignoring/removing anchors (or “hashtags”) when clicking hyperlinks?

前端 未结 5 1509
遇见更好的自我
遇见更好的自我 2020-12-15 18:28

I need to point one page to another and then scroll to a particular section. In Chrome and Firefox, using an URL like www.example.com#section1 does the trick. (

5条回答
  •  佛祖请我去吃肉
    2020-12-15 19:04

    Case: I have parameters after '#' like url#myParam=123, when I changed params like url#myParam=789 Safari sometimes loaded previous page based on myParam=123,

    although in Address bar it showed myParam=789

    Solution : Use url?#myParam=123, then Safari will everytime load new page.
    Using '?' before '#' solved my problem.

提交回复
热议问题