Closed
Bug 1434897
Opened 7 years ago
Closed 5 years ago
Localized versions not inherit redirects from english version
Categories
(developer.mozilla.org Graveyard :: Localization, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: diraria, Unassigned)
References
()
Details
(Keywords: in-triage, Whiteboard: [specification][type:bug][points=6+])
What did you do?
================
1. Assume there is redirect from page /en-US/B to /en-US/C
2. Assume that page /ru/C exists
3. Assume on page /en-US/A there is link to /en-US/B
4. Assume on page /ru/A there is link to /ru/B
5. Move to page /ru/A and click to link to /ru/B
What happened?
==============
Page /en-US/C will be opened
What should have happened?
==========================
Page /ru/C will be opened
Is there anything else we should know?
======================================
Also on page /ru/A link to /ru/B highlights in red, hovewer on /en-US/A link to /en-US/B highlights as usual.
Example of such pages:
/ru/A --- /ru/docs/Web/HTML/Element/img
/ru/B --- /ru/docs/HTML/Content_categories
/ru/C --- /ru/docs/Web/Guide/HTML/Content_categories
Comment 1•7 years ago
|
||
Here's more on the example.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img has a blue box with "Content Categories" at the top. That link went to https://developer.mozilla.org/en-US/docs/HTML/Content_categories. Links like "Flow content", "phrasing content" go to anchor links on that page as well.
https://developer.mozilla.org/en-US/docs/HTML/Content_categories is a 301 redirect to https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories
https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories is a 301 redirect to
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories
The Russian translation is at https://developer.mozilla.org/ru/docs/Web/HTML/Element/img. The "Категории контента" link goes to https://developer.mozilla.org/ru/docs/HTML/Content_categories, which is what you'd expect from the English version. This document does not exist.
If a user accesses https://developer.mozilla.org/ru/docs/HTML/Content_categories, MDN will redirect users to the English document https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories, and follow the redirect chain.
There is a Russian translation of the destination doc:
https://developer.mozilla.org/ru/docs/Web/Guide/HTML/Content_categories
It will be challenging to fix this automatically for all cases. In this specific case, we can't create a redirect document on the Russian side to make it work. The fix needs to be:
1) On the English document, update the links to the new location of Content_categories (Done!)
2) On the Russian document, "translate" the document to pick up the new URLs.
diraria, can you take care of applying this change to the Russian document?
Yes, of course, I have corrected links on page https://developer.mozilla.org/ru/docs/Web/HTML/Element/img. But the general problem still exists and it is sadly that it can't be fixed automatically.
Just some information: if I counted correctly on that page (/ru/docs/Web/HTML/Element/img) there were nine links that should be corrected. And there are many another pages, where, I think, also exists links that should be corrected. Too many to fix them manually...
Flags: needinfo?(diraria)
Updated•7 years ago
|
Assignee: nobody → jwhitlock
Keywords: in-triage
Priority: -- → P1
Whiteboard: [specification][type:bug] → [specification][type:bug][points=2]
Comment 3•7 years ago
|
||
There's 513 pages with 2033 links to en-US/docs/HTML/Content_categories. These would need to be updated to en-US/docs/Web/Guide/HTML/Content_categories to avoid this particular bug without fixing code. More work is needed to count redirect links in general.
For this one, in the Django shell:
from kuma.wiki.models import Document
from pyquery import PyQuery as pq
page_count = 0
instance_count = 0
for doc in docs.only('id', 'html'):
page = pq(doc.html)
links = page('a[href*="en-US/docs/HTML/Content_categories"]')
if links:
page_count += 1
instance_count += len(links)
print page_count, instance_count
Whiteboard: [specification][type:bug][points=2] → [specification][type:bug]
Updated•7 years ago
|
Priority: P1 → --
Whiteboard: [specification][type:bug] → [specification][type:bug][points=6+]
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Assignee: jwhitlock → nobody
Comment 4•5 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•