Ticket #340 (closed Bug)
Error when changing to another language variant
| Reported by: | andreas@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | Minor | Milestone: | |
| Component: | Frontend (wiki) | Version: | 2.0 |
| Keywords: | Cc: |
Description
[jira2trac import : issue created on August 30, 2006 6:37:52 AM CEST http://issues.cocoondev.org/browse/DSY-340 ]
How to reproduce:
Create an arbitrary document in two language variants (e.g. en and nl, assuming id=14).
Add that document to the navigation tree of an arbitrary site and assign a node ID for that document (e.g. testdoc)
Invoke that document: http://my.domain.tld/mysite/14 -> http://my.domain.tld/mysite/testdoc[[br]] Now try to switch to the other language variant of that doc via: Variants -> main -nl
Error: http://my.domain.tld/mysite/testdoc?branch=main&language=nl -> Path not found: testdoc
Would work if the document id were given instead of the node id:
http://my.domain.tld/mysite/14?branch=main&language=nl -> Works
[jira2trac import : comment created by bruno on August 30, 2006 8:18:03 AM CEST]
Fixed by linking to variants using the document ID instead of the navigation tree path.
This is probably a side effect of the earlier change to identify nodes based not only on node ID but also branch and language (was needed to be able to have the same document in two different variants as siblings in the navigation tree).