Does anybody know how I use asp.net mvc routing to force any non ajax request matching controller/action/id to always respond with the home index view?
I am developing a Backbone.js applciation and trying to use pushstate therefore I do not have the hashfragment. The issue I am having is with bookmarked url’s such as a paged grid /CustomerDirectory/1 responds with the json – I need to respond with the index view then for backbone to take over and initiate the grid using the urland request the json for the grid?
A global action filter springs to mind:
which will be registered in
Global.asax: