Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negotiator prevents googlebot from indexing the page #87

Open
colonder opened this issue Oct 7, 2023 · 1 comment
Open

Negotiator prevents googlebot from indexing the page #87

colonder opened this issue Oct 7, 2023 · 1 comment

Comments

@colonder
Copy link

colonder commented Oct 7, 2023

When in production, I noticed that Googlebot constantly reported a 5xx error when trying to check the page for indexing. I used a URL-checking tool for this. Interestingly, I noticed that the reason for this is that the negotiator library produces an incorrect list of languages, and passes it to the intl-localematcher, which in turn throws an error described here formatjs/formatjs#2440. The temporary fix I introduced was to fix the value of languages to just an empty list. However, negotiator itself hasn't been updated in several years already, so I think it should be replaced with smth else.

@PaulBratslavsky
Copy link
Contributor

@colonder thank you for sharing this and your workaround. I will keep this open until we can figure a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants