Data not passed to server in callback

After login, Keycloak redirects the user back to a URL like:

http://localhost:8080/#session_state=<hex-data>/

My Django server doesn’t receive the session_state query parameter, as everything from and after the “#” isn’t sent to the server. I expected it to send:

http://localhost:8080?session_state=<hex-data>/

Is there a Keycloak setting I need to change for this or is there something I’m not understanding?

Thanks