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

前端 未结 5 1490
遇见更好的自我
遇见更好的自我 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 18:45

    For me it was the exact same issue like mrbinky3000 has stated above: The server mod-rewrite was killing the hash in safari.

    The solution was to use a full absolute link like: http://www.example.com/path/#item-1

提交回复
热议问题