Is the URL fragment identifier sent to the server? [duplicate]
Fragment identifiers are not sent to the server. The hash fragment is used by the browser to link to elements within the same page.
Fragment identifiers are not sent to the server. The hash fragment is used by the browser to link to elements within the same page.
The main problem is that the browser won’t even send a request with a fragment part. The fragment part is resolved right there in the browser. So it’s reachable through JavaScript. Anyway, you could parse a URL into bits, including the fragment part, using parse_url(), but it’s obviously not your case.