SilvaDocument: relative links are not handled correctly
Bug #100764 reported by
Christian Zagrodnick
This bug report is a duplicate of:
Bug #100914: Relative links not working in documents.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
Martijn Faassen |
Bug Description
Assume a document doc and an asset foo in one container.
If you hit the "add hyperlink" button on a paragraph in doc you it inserts
something like ((foo|foo)). This is what is expected.
The public/preview rendering of this hyperling though will just be "foo". So we
may get URLs like doc/edit/foo or doc/foo which is not indendet. I think if the
Link points to an existing object we should use its absolute_url method to
render the Link. If the target object is not reachable we have to thinkg about
getting the context right.
To post a comment you must log in.
Assigning this to JW. I don't think we should always use absolute url as
care was actually taken to support relative views.. JW should have a
better idea of the issues involved here, I hope.