Look at the routing module of Anvil Extras. It gives you automatic parsing of URL parameters, and gives each form a distinct URL. You can do everything you’re talking about and more with it. GitHub - anvilistas/anvil-extras
Edit: if you want to see an example of using hash routing: Hash Routing Example with Templates