Hello, I have the exact same issue. I'm using the fragment part of the URL to embed a lobby code (my-game.com/#12353)
On Itch this fragment is neither read nor written to, probably because of the iframe. How can I go around this limitation?
If this cannot be solved I might be unable to submit my game to itch entirely and will have to self-host it.