I am using jquery mobile and php. My current URL is,
mobile/dashboard.php?mn=ce06ac9a87U0hFTFRFUlM-&shelterId=10
I am trying to change location by,
header('location: shelter/dashboard.php');
So, the URL should be like:
mobile/shelter/dashboard.php
Redirection is working fine. But, the problem is, it's giving me the previous URL in which I am passing variables (GET). When I refresh this page manually, then it's giving me mobile/shelter/dashboard.php URL which is correct.
Why do I need to refresh the page again?