Proper URL forming with Query String and Anchor Hashtag

前端 未结 5 1534
粉色の甜心
粉色の甜心 2020-12-04 11:27

When both a query string and anchor tag (hash tag) are visible in a URL, what is the proper order for them to appear?

http://www.whatever.com?var=val#anchor

5条回答
  •  忘掉有多难
    2020-12-04 12:13

    Note that when the URL has both anchor tags (#) and query strings (?), the browser may ignore the query string and navigate to the anchor tag without reloading the page.

    It may be necessary to submit the page using a

        

    rather than just a URL link

        .
    

提交回复
热议问题