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.

Infinite redir reported by search console

See original GitHub issue

An 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:closed
  • Created 5 years ago
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
bqbncommented, Feb 7, 2019

Although I’m not sure why the frontend is returning 404s now when it was issuing a redirect in the past.

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.

0reactions
autrillacommented, Feb 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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