#Issues with redirections & trailing slash on cloudflare pages with cloudflare functions.

2 messages · Page 1 of 1 (latest)

buoyant moon
#
"/myproduct": "/product/myproduct/",
"/myproduct/": "/product/myproduct/",

I'm trying to do redirection like this on my astro app deployed on cloudflare pages with cloudflare functions (im using hybrid/server mode in astro, so the auto ending trailing slash added by cloudflare pages doesnt seem to work)

Not sure if this isn't how I should do the redirection or it's a bug on the cloudflare adapter?

the 2nd redirection entry (/myproduct/) is detected as duplicate and seems to be normalized to not have the end trailing slash instead

buoyant moon
#

in the meantime, I'm opting to define duplicate redirects for source path with ending trailing slash in public/_redirects file instead.