So I’m developping a mobile web application and at some point, I have the following:
<a href="index.php?key=blabla#detailsDepense">
It almost does what’s intended, it navigates to index.php and jumps to the detailsDepense section. Unfortunately, it just drops the ‘key’ GET parameter from the url and make it inaccessible from php.
How can I pass GET parameters while still using the hash (#) in my URL?
Format a ‘pseudo-hash’ into your querystring as a GET variable…
Then, in your page, pass that variable to location.hash using PHP/JavaScript:
Simple as that!