Cloudflare pages _redirects file does not work with # anchors

Hello,
I am trying to use the _redirects file of my Cloudflare Pages Site for link shortening. Unfortunately, links with # anchor do not work.

/test https://www.youtube.com/watch?v=dQw4w9WgXcQ 302
https://www.youtube.com/watch?v=dQw4w9WgXcQ 302

/test2 https://example.org/test/#6 302
https://example.org/test/#6#6

It always happens, that the text behind the anchor duplicates. This problem does not occur, with bulk redirects.

Hey,

We are aware of the bug and are in the process of fixing it. Thanks for the report :slight_smile:

1 Like

Thank you!

Can you give any estimation, when this bug will be fixed?

Just ran into this issue as well.

Any eta on resolution after an additional 11 months ?

Any news?
CC @Walshy

Hello @ja11, this has been fixed here

Please let me know if you still face this issue.

The problem is still present.

Thanks for your reply.

I just filed an internal ticket (CUSTESC-44240) to have this issue reviewed by our product team.

We’ll keep you posted.

3 Likes

What is the status @L.Cardoso?

A fix has been rolled out for this issue on Cloudflare Pages. Can you confirm the status of your issue here?

1 Like

It looks like it’s fixed.

1 Like

I’m glad to read that