Anvil Community Forum

URL Hash should support both ! and?

Currently a URL hash like #?page=apageid will get parsed into a dictionary with get_url_hash ().

To get Google to index based on a URL hash, it needs to have an exclamation point after it, e.g. #!?page=apageid

get_url_hash does not properly handle the above. It returns a string “?page=apageid”.

I’d like it to return a dict regardless of whether the URL hash is # or #!

2 Likes

Noted, thanks.

This has now been implemented, you should find that it works :slight_smile:

4 Likes

Thanks! To make up 20 characters, I’ll confirm that this works.

2 Likes