When I want to change a page I get redirected with status 308 to the URL with a slash at the end of the URL, I am using view transition API, and here is my astro.config file:
// https://astro.build/config
export default defineConfig({
trailingSlash: "never",
site: "https://radoje.dev",
integrations: [tailwind(), sitemap()],
experimental: {
viewTransitions: true,
},
markdown: {
syntaxHighlight: "prism",
},
output: "server",
adapter: cloudflare(),
})
#Cloudflare redirects my pages to a URL with a slash at the end of the URL
3 messages · Page 1 of 1 (latest)
Hi @cyan comet. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the information provided in the extracts, it seems like you're experiencing an issue related to routing or redirects in Astro. However, the extracts do not contain specific information about the issue of being redirected with status 308 to the URL with a slash at the end when using the view transition API.
Astro does support redirects through the redirects value in the Astro config file, as mentioned in the Configured Redirects section (https://docs.astro.build/en/core-concepts/routing#configured-redirects) of the Astro documentation. However, the status code 308 is not specifically mentioned.
The View Transitions (https://docs.astro.build/en/guides/view-transitions) feature in Astro, which you're using, allows for opt-in, per-page, view transitions that update your page content without the browser’s normal, full-page navigation refresh. This feature is enabled through the viewTransitions flag in your Astro config file.
If you're experiencing issues with this feature, it might be a bug or a configuration issue. Unfortunately, the provided extracts do not contain enough information to diagnose or solve this specific issue.