I am looking to standardize the processing of ajax #anchors at the server side, using MVC.
Before a controller action is invoked I want to convert every request with ajax anchors into a request without ajax anchors, so that the controller code does not know there were anchors in the request:
For example:
1) /user/profile#user/photos
should be treated as /user/photos
2) /main/index#user/profile/33
should be treated as /user/profile/33
What is the best technique in MVC to accomplish that?