The URL fragment identifier (the # and anything after) is never sent to the server by the browser - you can’t use that as a part of a redirect.
The URL fragment identifier (the # and anything after) is never sent to the server by the browser - you can’t use that as a part of a redirect.