Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94994 - Foreign language links on doc index lead to user-doc page
Summary: Foreign language links on doc index lead to user-doc page
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 03:12 UTC by Thomas K
Modified: 2005-09-29 03:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas K 2005-06-04 03:12:06 UTC
When I go on the page with all the developper's documentation:

http://www.gentoo.org/doc/en/index.xml?catid=gentoodev

and click on a foreign language to get the translated pages, i end up on:

http://www.gentoo.org/doc/fr/index.xml

which is the french translation of the user's documentation. Obviously, the GET
variable catid=gentoodev isn't written in the links.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-06-04 09:55:25 UTC
As mentioned on irc, this will likely be a 'cantfix'.
I can't see how it can be done at this point.
The catid param is available to the stylesheets, but how do they know
1) they are processing a doc index? 
2) the target is another doc index and it can use the catid parameter?
Bear in mind that doc indexes can either be a normal document or be generated by
metadoc.

I'll leave this bug open to suggestions and keep the issue somewhere in my head.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2005-09-15 02:53:03 UTC
OK, now that all active doc indexes (/doc/$LANG/index.xml) use metadoc (ru is
waiting in bugzilla but will make it online soon, I hope), we know that a doc
index supports the catid param. We can test whether the target is another doc
index and add the catid param to the link.
It's implemented on my test site:
http://gentoo.neysx.org/doc/en/?catid=install

Testing whether the current page is a doc index can't be ported to www.g.o, but
that should not cause any ill-effects.
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2005-09-29 03:24:46 UTC
Fixed. Thanks for reporting.