Infinite redir reported by search console
See original GitHub issueAn example link is:
https://addons.mozilla.org/en-US/firefox/addon/leechblock/%0A
This only causes an infinite redir on the react-based site.
For QA: the URL above should not crash. In -dev or -stage, you can try with any add-on detail page URL with /%0A
at the end, example:
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (13 by maintainers)
Top Results From Across the Web
Page Indexing report - Search Console Help - Google Support
See which pages Google can find and index on your site, and learn about any indexing problems encountered. Open Page Indexing report.
Read more >A Guide To Fixing Google Search Console Errors in 2022
Learn how to fix Google Search Console's most common errors such as Index Coverage, Mobile Usability, and Core Web Vitals reports, and more....
Read more >Google Search Console Errors: How to Find and Fix Them on ...
We've put together a list of some of the most common Google Search Console error reports, as well as how to determine what...
Read more >Find and Fix Index Coverage Errors in Google Search Console
Is Google Search Console reporting Index Coverage issues? This article explains what each issue means, and how to fix it!
Read more >Google Experiences Internal Issues During Indexing
A redirect error is something that many publishers might not see often in their Google Search Console. It's a technical SEO issue related...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s because previously,
/en-US/firefox/addon/foxyproxy-standard/%0A
is matched and routed to the frontend. The frontend then 301 the request to/en-US/firefox/addon/foxyproxy-standard/%0A/
. The second URL is then matched and routed to the legacy site, which 301 to the first URL, thus causing a loop.Now that everything is routed to the frontend by default, the above second URL is no longer routed to the legacy site, thus the frontend is able to get it and return 404.
What’s interesting is that when Nginx gets a URL like
/en-US/firefox/addon/foxyproxy-standard/%0A
, the effective part it uses to do location match is just/en-US/firefox/addon/foxyproxy-standard/
, and that’s why the request got routed to the frontend when it shouldn’t in our case (we had a rule to match just/<locale>/<app>/addon/<slug>/
). What’s worse is that Nginx still sends the whole URL string to the upstream even though it only used a part of it to do the match.Sounds good to me as well. Although I’m not sure why the frontend is returning 404s now when it was issuing a redirect in the past.