Redirect with special characters (#)

hello all, we have a URL with a # in it (https://app2.yachtingsbest.com/#/guest/camp/2872/booking) and it seem that Cloudflare redirect rules won’t work with this.

I’ve tried https://app2.yachtingsbest.com/#/guest/camp/2872/booking and https://app2.yachtingsbest.com/*/guest/camp/2872/booking and */guest/camp/2872/booking but non seem to work.

I’ve also tried the beta “redirect rules” with a URI that contains /camp/2872/booking but that doesn’t work either.

Any suggestions or help would be very much appreciated,

Thanks!

1 Like

Hi,

The hash character (#) is considered the beginning of a “fragment”, a portion of the URL that is not relevant to the server, only to the browser. Your URL is seen by the browser as:

https://app2.yachtingsbest.com/ <= the URL
#/guest/camp/2872/booking <= the fragment

Fragments can be used on Cloudflare Redirect Rules in the target URL, but not in the source URL.

2 Likes

Thank you for the response, so it oooks like a redirect from that url won’t be possible then. Much appreciate the explanation

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.