I didn’t know the part after # in a URL doesn’t get sent to the server.While that is technically true, please know that it is not true in a way that is meaningful for many threat models. The JavaScript running on the page can trivially detect, inspect, and log changes to the location hash.
More information here:
https://developer.mozilla.org/en-US/docs/Web/API/WindowEvent...