Kupu linking to a doc in another folder

Bug #101323 reported by Jan V Smith
10
Affects Status Importance Assigned to Milestone
Silva
Invalid
Medium
Sylvain Viollon

Bug Description

Using kupu to link from one document to another in the same folder works well.
However if you wish to use kupu to link to a document in another folder in the
same publication, kupu generates a url outside the publication. This will break
the link when the publication of documents is exported and imported into a new
Silva instance.

i.e kupu gives this when linking to a doc in another folder:-
/silva/silva_docs_1_2/authors/content_editor_kupu

/silva = name of silva instance
/silva_docs_1_2 = the name of the publication

more useful would be:
/silva_docs_1_2/authors/content_editor_kupu

Revision history for this message
Guido Wesdorp (guido-infrae) wrote :

What Silva version is this? Is this on Cosmos? The code that generates urls has
been changed in the last release, so it would be interesting to know whether
this is with the old or the new code.

Revision history for this message
Jan V Smith (jansmith) wrote :

Hi and Happy New Year

A reference would have been helpful :) It was in Silva 1.1.
Here is an example.
http://www.infrae.com/st/Jan_Tests/usability/parkville
The link in this example works but will not export well.
This is the path kupu gave the link
/st/Jan_Tests/Silva_Overview/InAnOrganization

Jan_Tests is the publication in this example.

Revision history for this message
Guido Wesdorp (guido-infrae) wrote :

Okay, that's still the older version of Silva, I think this has been fixed in
the latest release. If you encounter it still after we've updated Cosmos (dunno
when that will happen though) please let me know...

Revision history for this message
Martijn Faassen (faassen) wrote :

This issue had no topic, so it was off our radar.

Revision history for this message
Martijn Faassen (faassen) wrote :

Cosmos should have been updated. Next time, Guido, instead of saying "don't know
when cosmos will be updated" make an issue in our admin issue tracker saying
"upgrade cosmos documentation silva" with the reason why. :)

Revision history for this message
Martijn Faassen (faassen) wrote :

I don't see why you say this works in newer Silva versions though, Johnny. I've
just created the following structure:

silva

   a

     b (doc)

     c

       d (doc)

Now I created a link from d to b. This link looks like this:

/silva/a/b

So, if you export this to another Silva, the link will be broken.

Revision history for this message
Martijn Faassen (faassen) wrote :

I think the forms editor tries to generate relative links where possible. I've
seen some cases where links looked relative in kupu, but possibly that is
because they'd been generated in the forms editor.

Revision history for this message
Martijn Faassen (faassen) wrote :

Hm, the way links appear to be rendered with the old-style editor don't look
much better, if not more confusing. I thought our old-style renderer tried at
least to make a URL that wasn't confusing, but when I make a link using the
forms-editor and display without XSLT, I get links like this:

/silva/a/c/b

I'm confused.

Revision history for this message
Martijn Faassen (faassen) wrote :

We discussed this and it's a bit of a quagmire. We'll try to work around the
various link issues for the time being.

Revision history for this message
Sylvain Viollon (thefunny) wrote :

Links are now references. They are imported/exported properly. This doesn't exists anymore.

Changed in silva:
assignee: Jan-Wijbrand Kolman (jw-infrae) → Sylvain Viollon (thefunny)
milestone: none → 2.3
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.