If I am at page
test.php?parameter1=some¶meter2=some
and I execute the script
<script type="text/javascript">
$(document).ready(function($)
{
//window.location.replace(window.location.href);
//window.location.href += "#mypara";
//location.href.reload();
location.reload();
});
</script>
the location.reload() function loses any $_GET parameters (Notice I tried without any result using the window.location.replace() function).
It seems the location reload has the correct location.href with correct parameters but the request is sent to the server without $_GET set, by debugging with PhpStorm indeed I see no $_GET is set.
Searching on the internet I found no working solution to pass $_GET parameters when issuing location.reload().