Is it possible to add a function to handle the anchor links?
I am not sure the good place is bug or feature but I think this feature primarily made to redirect to post and not to an anchor inside post, so I put it in feature instead.
Note there is a minor glitch in my implementation: ?hello=1&silent=true (multi params) are probably not going to work, but I can’t really think of legit cases where we need multi param support and this feature.