As far as I understand the concept of urls, the part behind the „#“ is only client side and not server side. So you can acces it with javascript in the Storefront, but not in PHP, since the server only gets the url /action.
www.url.de? serverside # clientside