Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Infinite redirection in Cloudflare Pages - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
32 replies
albertmgta
Infinite redirection in Cloudflare Pages
Hello
!
We have deployed some next
.js projects we had in Vercel in Cloudflare
. Everything works fine
, except when someone accesses a URL by putting a slash
/ at the end of it
.
It goes into an infinite loop
.
Can someone help us
?
URL that works fine
:
https://demo.tkting.io/es/club/club-test
URL with infinite loop
:
https://demo.tkting.io/es/club/club-test/
In the next
.config
.js configuration the
"trainlingSlash
" is set to false
.
If we enable it
, when entering any route it stays in infinite loop
.
Thank you very much for your valuable help
https://demo.tkting.io/
Club test
https://demo.tkting.io/
Club test
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Renaming pages breaks domain redirection
CD
Cloudflare Developers / pages-help
2y ago
cloudflare pages
CD
Cloudflare Developers / pages-help
2y ago
OATUH Cloudflare Pages
CD
Cloudflare Developers / pages-help
2y ago