question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: Difference in redirects parsing for Pages Direct Upload

See original GitHub issue

What version of Wrangler are you using?

2.0.8

What operating system are you using?

Windows

Describe the Bug

There appears to be a difference in the _headers and _redirects parsing when using wrangler pages publish or the dashboard direct upload for Cloudflare Pages.

  • The following redirect rule (/:_/* /) works through the Git integration but not direct upload.
# Git integration
curl https://pages-du-test.pages.dev/foo/bar -sSI
HTTP/1.1 302 Found
# Direct Upload
curl https://foo-86b.pages.dev/foo/bar -sSI
HTTP/1.1 200 OK
  • The dashboard does not show the parsed redirects/headers, despite them working.

image

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:11
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jahandscommented, Aug 19, 2022

Thanks @keenwon - that is a separate issue to this issue however (which we have an internal ticket for.) These files are getting applied, they just aren’t showing up in the Dash UI

1reaction
jahandscommented, Aug 18, 2022

Thank you for the report and everyone’s patience - this is now fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Direct Uploads failed to parse _redirects and _headers ...
The problem is that the _redirects and _headers files cannot be parsed when publishing the Pages site via Direct Uploads.
Read more >
Open redirect URLs: Is your site being abused?
An open redirect isn't a bug or a security flaw in and of itself—for some uses they have to be left fairly open....
Read more >
EXPLOITING URL PARSERS: THE GOOD, BAD, AND ...
A HTTP response telling the browser to redirect the user to https:ֿ/\www.google.com through the Location. HTTP header, using both backslashes and slashes. The ......
Read more >
Create redirects for GitLab Pages
In GitLab Pages, you can configure rules to forward one URL to another using Netlify ... 11 rules rule 1: valid rule 2:...
Read more >
How to Redirect a Web Page | CSS-Tricks
A redirect is when a web page is visited at a certain URL, it changes to a different URL. For instance, a person...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found