This problem I meet when I implement socialengine theme base on jQuery mobile framework. This is nice framework for mobile but it make me crazy since it doesn’t work well for back button after I redirect in normal way
window.location.href = "new URL";
But finally I found the solution for this redirection in jquery mobile what we can make sure it work well then. We just need to do the click action for A tag external rel then it will take care the rest for us. Here is the code.
As you see we add an A tag and hide it with ID hidden-search-a-tag then we will change attribute href before we click it.
Do and see the magic. Thanks and welcome any comment