Anvil apps are Single Page Apps and don’t manage the query string.
Here is how you can use the part after the #: Anvil Docs | Navigation
There is a great module to manage the navigation that uses the same function: HashRouting: Routing, navigation with URL Hash