Trouble with Permalink redirects due to fragment after "#" not being sent to server

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.