Get request part after hash sign

后端 未结 2 1687
隐瞒了意图╮
隐瞒了意图╮ 2021-01-11 16:19

My web-site has AJAX-powered search, that uses deep-linking. When user follows a link …

http://example.com/articles#/?tags=Mac%20OS,review

2条回答
  •  不知归路
    2021-01-11 16:36

    The part of a URL after the hash is not sent to the server, so you can't process it there. You can extract that part of the URL in the client-side code that creates your Ajax request and send it as a parameter.

提交回复
热议问题