You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It somehow appends the target URL to the current URL, resulting in a 404 every time.
This behavior is imitated when building through cloudflare pages (which serves ./dist folder after building).
Are the hrefs being dynamically modified? or have I accidentally made some changes somewhere?
Hi, thanks for opening this issue. I can confirm the PostNavigation.astro component is broken when deployed on Cloudflare Pages. Deployments on Vercel or Netlify are not affected by this issue.
When inspected the hrefs appear to be correct and link to the post's relative URL but Cloudflare seems to be appending it to the end of the current URL.
I also tried updating the site in astro.config.mjs but didn't notice a change.
I'll have to investigate further or get in contact with Cloudflare support.
Activity
trevortylerlee commentedon Jul 18, 2024
Hi, thanks for opening this issue. I can confirm the
PostNavigation.astrocomponent is broken when deployed on Cloudflare Pages. Deployments on Vercel or Netlify are not affected by this issue.Astro Micro on Cloudflare Pages
When inspected the hrefs appear to be correct and link to the post's relative URL but Cloudflare seems to be appending it to the end of the current URL.
I also tried updating the
siteinastro.config.mjsbut didn't notice a change.I'll have to investigate further or get in contact with Cloudflare support.
EDIT: Link to Cloudflare support topic
Fix issue #39: ensure PostNavigation links start with a forward slash
Merge pull request #42 from trevortylerlee/39-pagination-fails-in-clo…
trevortylerlee commentedon Jul 19, 2024
Should be fixed now... lol