If you are using ajax for getting some data and on page refresh it does not reflect that same data as ajax give.

You are getting this issue due to old URL the use “pushState” that will change your site URL from browser without any redirection.

$agaib = get_site_url().’/delivery-location/?latitude=’.$latitude.’&longitude=’.$longitude.’&pa=’.$offset.’&cat=’;
window.history.pushState(‘cat=’, ‘Title’, “<?php echo $agaib; ?>”+ loc );


Please login or Register to submit your answer

Log In

Not the answer you are looking for? Browse other questions tagged or ask your own question.