I used to have a single index page, with anchor links to notes, like https://example.com/#1234567. I have since changed the site to paginate that index, hence those links have broken. What it used to be https://example.com/#1234567 is now https://example.com/1234567.
How could I implement a rewrite that will strip that # from requests? Running Caddy v2.4.6. Thank you!
Hmm, I am reading that the # part is never sent to the server, it is client side. I am leaning to believe this is not possible at all. Would love to hear from someone more versed than me, though.
I remediated this with JavaScript (gasp!). I didn’t see any other way to do it. For those that might be in the same situation as I was, this is the one liner I used: