Antman
Antman
CDCloudflare Developers
Created by Antman on 6/24/2024 in #pages-help
Files and URLs with spaces breaking or 404ing
Hello. I am testing out hosting and switching from netlify to cloudflare pages in order to get a feel for the process. My problems comes from having files that contain spaces in them and those files not loading and 404ing. Specifically images. I tried going back in to the code and added the encoding for URI and on my machine it runs fine, and on netlify it ran fine, but when pushed to cloudflare (with the encoding) it still does not display the images and links to them 404. The images are hardcoded from the public folder as I am in the process of moving them to an API call. I tried looking for the settings, added my domain to cloudflare and looked through the rules for URL/URI normalization, but I was unable to find what I needed to fix the issue. Essentially, why won't assets or links with spaces in them load? Any information on this would be greatly appreciated. https://antpondnextjs.pages.dev/gallery - The gallery in which photos are missing Account ID: db155b5ea7e905d63d2b63b63ee6da9a
2 replies