We are developing an Ajax application and are utilizing the jQuery Address plugin to load the various pages of the application So the urls for our site look like: www.app.com#/SomeController/SomeAction. Navigating to such a url loads the default route for the application and then jQuery Address is utilized to load the SomeController/SomeAction url into a div on the page.
The problem is that the user can still access www.app.com/SomeController/SomeAction (no hash sign) directly by typing the url in the browser. How do we prevent the user from being able to access the pages directly and require that they have the hash sign in there to make sure the pages are loaded via Ajax request?