showing results for - "express request url ignores hash"
Stefano
18 Aug 2019
1The part of the URL starting with the # symbol is never sent to the server.
2
3The # symbol in an URL is to introduce the fragment identifier. 
4This is used to link to a specific part of the page. If a browser loads 
5/#some/url, it will effectively load /, and skip to the HTML element 
6with id="some/url" (if present). The fragment identifier is only relevant 
7to the browser, so it is not sent with the HTTP request.
8
9What you however can do, is using client side Javascript to read out the 
10value of window.location.hash and send it to the server using 
11an XMLHttpRequest.