-
-
Notifications
You must be signed in to change notification settings - Fork 989
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
Google search results are showing French translations for English language links #868
Comments
@tobiasmcnulty - could this be related to your recent changes? |
That's...odd. I don't think anything I've changed could be causing that, but I suppose anything is possible. Could this be the inverse of #805? I did notice a potential, related issue while working on language activation in the umerged PR #862. Specifically, the site does not activate English if that's the language the user is requesting, so it would inherit whatever language was set previously for that uswsgi thread or by |
That could be a bug in Google too! |
I think this has a chance to be solved with #862 PR. Google might have been fooled by Vary header telling that pages in different languages are the same (so it thought French title is an English title then, and use it as more fresh cause recently changed and reindexed). |
The |
Google search for "Django Tutorial Admin" shows the Search Snippets in Indonesian. See attached screenshot.
Debugging Hint: Open Page Source for this https://docs.djangoproject.com/en/2.1/intro/tutorial02/ in your browser, These attributes control the language in which the page is displayed in the browser. I didn’t see anything obviously wrong on the HTML page itself. The title "Menulis aplikasi Django kedua anda, bagian 2" |
Does anyone know someone at Google we could report this issue to? |
Do we have Google Search Console [1] set up for docs.djangoproject.com? Is
it showing any hints or errors? We should inspect also our sitemap, if it
is correct.
Regards,
Maciej
[1] https://search.google.com/search-console/about
wt., 26.02.2019, 08:24 użytkownik Claude Paroz <notifications@github.com>
napisał:
… Does anyone know someone at Google we could report this issue to?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#868 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI25Tg0SUYOO-N75BsltBJdMHuELYpGBks5vROFBgaJpZM4bEGwX>
.
|
Chiming in to point out, in case it hasn't been noted already: the cached copy for "Django Tutorial Admin" in Indonesian (with the English link) has |
I found an article about [i18n and Google](https://support.google.com/webmasters/answer/189077). We do not follow its
guidelines for sitemaps (link rel alternate & hreflang).
|
Interestingly the Google search link that originally prompted this issue now shows English again. But yes, I see Indonesian text when Googling "Django Admin Tutorial" now, too: https://www.google.com/search?q=django+tutorial+admin It feels very much like a caching issue, but I don't see where it could be occurring 😦 It looks like @aaugustin may have verified the domain with Google Webmaster Tools about 6 years ago (a0907ff); would you be able to grant me access to this if you still have it @aaugustin ? |
I have access to the Google Search Console but I don't see how I can give access to others. Here's the report for https://docs.djangoproject.com/en/2.1/intro/tutorial02/ This is the information about "Google-selected canonical" https://support.google.com/webmasters/answer/9012289#google-selected-canonical |
In docs' metatags we set canonical per page (for example Possible solution then would be to set canonicals for all languages to |
Just saw French on another search The problem doesn't occur up on DuckDuckGo! |
Another article seems to support my thesis: https://developers.google.com/search/mobile-sites/mobile-seo/separate-urls. rel:canonical and rel:alternate are treated equally. AFAIC we should make canonicals point to English versions. |
I've just opened draft pull request #871. |
@m-aciek @timgraham It is indeed odd that google chose the 'id' version of that page as canonical, but I'm not sure #871 is the appropriate fix: From: https://support.google.com/webmasters/answer/139066?hl=en |
To throw another theory out there, I think we are misusing https://webmasters.googleblog.com/2013/04/x-default-hreflang-for-international-pages.html This page seems to suggest that use of We also only render https://github.com/django/djangoproject.com/blob/master/docs/views.py#L52 It would seem appropriate to render that for all versions? I put up a PR with these and some related changes here: #872 |
FTR: issue #621 started with similar topic and started SEO for djangoproject.com. |
Good find @m-aciek . @apollo13 It looks like my PR #872 partly reversed what you did here: d6a966f#diff-edc52c8f3a604a128e8f302806fb9262 Any memory of what the reason was for that and/or do you have any objections to showing the hreflang tags on all docs versions (not just the canonical one)? |
If this doesn't work, another thing we might try is refactoring the sitemap to use hreflang-style link declarations as described here: https://support.google.com/webmasters/answer/189077?hl=en Right now it looks like each language gets its own sitemap. |
Puh, I will give it a look in the afternoon. The main thing is that documentation on what Google interprets how is rather sparse. So I tried (over a few weeks) what worked best at that time and then committed that. That doesn't mean it is the best approach nowadays though.
…On Wed, Feb 27, 2019, at 20:00, Tobias McNulty wrote:
Good find @m-aciek <https://github.com/m-aciek> .
@apollo13 <https://github.com/apollo13> It looks like my PR #872
<#872> partly reversed
what you did here:
***@***.***#diff-edc52c8f3a604a128e8f302806fb9262
<tobiasmcnulty@d6a966f#diff-edc52c8f3a604a128e8f302806fb9262>
Any memory of what the reason was for that and/or do you have any
objections to showing the hreflang tags on all docs versions (not just
the canonical one)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#868 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAE-i79OjdIsTnZwhnXnnbOOE093mGuhks5vRtXRgaJpZM4bEGwX>.
|
@tobiasmcnulty I was mainly following #621 (comment) when coming up with which rels should point where… I'll see that I can give you access to the google search tools. |
Thanks @apollo13 I see your commit implemented exactly what that page recommends. I guess we can see how it behaves with the hreflang tags on all pages for a bit and then revert if there's a regression. @timgraham @m-aciek I found this link which seems to suggest that making English (or any one language) the canonical version of the page is not correct (see the the "Most common mistakes implementing hreflang and canonical tags" heading): https://www.portent.com/blog/seo/implement-hreflang-canonical-tags-correctly.htm But again, who knows if these 3rd parties have it correct or not. 😕 |
Here's a list of the current (last updated by Google on 2/25/19) URLs that Google chose as canonical instead of the ones we suggested. None of them looks particularly worrisome: https://docs.google.com/spreadsheets/d/16oYtNJVhqAVH7wyIza10z1Pv4NhpSbx8g0QG9EpDGQE/edit#gid=0 Also, I've taken a snapshot of the full current index coverage report here, with some commentary and links to other, related issues: https://docs.google.com/spreadsheets/d/1l86YAEcw5CbvivuY-ZN81oy75Nh7T9g0eJX0sZ8Jww0/edit#gid=0 In particular #878 may be relevant to this issue. |
Hrmpf :( If google would document how that stuff is supposed to work :( I mean it worked for years :/ |
Indeed, this was scraped 2 days ago and in French: https://webcache.googleusercontent.com/search?q=cache:uxFlZ6Hw5RMJ:https://docs.djangoproject.com/en/2.1/topics/db/examples/many_to_many/+&cd=1&hl=en&ct=clnk&gl=nl Not sure if it's somehow possible to purge this from the Google results using the webmaster tools, but the tags look mostly ok right now. The only thing that's wrong is that there is a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'd think we'd have some recent activity since 2019 if this were still an issue, so closing, at least for now. |
Recently in my google searches for django things, French translations have been showing for English links.
For example, this search (https://www.google.com/search?client=ubuntu&channel=fs&q=django+refresh_from_db&ie=utf-8&oe=utf-8) resulted in https://docs.djangoproject.com/en/2.1/ref/models/instances/ being the displayed URL, but French is displayed.
Luckily, django methods are all in English, but could be an issue if I was searching for django concepts that did have a method associated.
The text was updated successfully, but these errors were encountered: