How to get the hash of the request URL?

I’m trying to access the hash part of the URL from my Phoenix controller. Is there a straightforward way to do this? I can see scheme, host, port, path and query on the conn structure but not the hash.

No, because the web browser doesn’t send it. The HASH is a client-side only part of the URI and browsers strip it when sending to the server.

2 Likes

Thanks. I had no idea :slight_smile:

1 Like