Skip to content

🐛 BUG: Getting 404 on URL that contains a dot and no trailing slash #2779

@rcdailey

Description

@rcdailey

Which Cloudflare product(s) does this pertain to?

Pages

What version of Wrangler are you using?

cloudflare/pages-action@v1

What operating system are you using?

Github Actions

Describe the Bug

I originally posted about this in the Cloudflare community forum.

I host my Docusaurus documentation site on Cloudflare Pages, and I use Algolia Crawl to index the site content for my search functionality.

If you do a GET on https://recyclarr.dev/wiki/upgrade-guide/v5.0, you will see it returns a 404. If I add a slash to the end, I get a 200. Weirdly, even though it returns 404 the page is still served and rendered correctly in my browser. However, a non-200 response breaks Algolia Crawl.

I suspect that the . character in the URL is causing an issue, because I do not get 404 responses for other pages without the dot. To me, this indicates a bug that should be fixed. I expect that the URL linked above should return 200 without a trailing slash at the end.

Additional Information

My docs site is open source and may be located here: https://github.com/recyclarr/wiki

I do not use Wrangler or anything. I build and deploy my site using a Github Workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    pagesRelating to Pages

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions