jQuery mobile: how to guess if there a refresh on an URL with '#' in it?
===

Here's my problem: I have many differents "pages" in one big HTML page and I just do transitions between them. My problem is that I generate dynamically some of the pages (including the "basket" page, and the other next page, which is the "reservation" page, which is constructed through an AJAX call).

All jQuery mobile pages are with a '`#`' in the URL so the URL doesn't change and there's no need to load a different URL.

So, to simplify things (I don't know if it's the best way), when the page is refreshed and there's a '`#`' in the URL, I just want to make a redirection to the same URL without the '`#`' in it.

How would you do this?