Format the pseudo hash in your query string as a GET variable ...
<a href="index.php?key=blabla&hash=etailsDepense">
Then, on your page, pass this location.hash variable using PHP / JavaScript:
<script type="text/javascript"> <?php if ($_GET['hash']) { ?> location.hash = <?php echo "'".$_GET['hash']."';"; } ?> </script>
Just like that!
source share