Skip to content

How can I get the URL fragment? #3002

Answered by machak
bnctth asked this question in Q&A
Discussion options

You must be logged in to vote

if you want to get it on the server (SSR), that's a no, client side you can get it via url.hash I believe.

"The search part, if present, is
sent as part of the HTTP command, and may in this respect be
treated as part of the path. No fragmentid part of a WWW URI (the
hash sign and following) is sent with the request.
Spaces and
control characters in URLs must be escaped for transmission in
HTTP, as must other disallowed characters. "

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bnctth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants