Opened 18 years ago
Closed 17 years ago
#4808 closed defect (fixed)
Relative url link on WikiStart page produces inconsistent link
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | wiki system | Version: | 0.10.3 |
Severity: | normal | Keywords: | documentation |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
(Using standalone server, 0.10.3, Windows 2000)
We have tried adding the following relative url link to our WikiStart page:
[../newticket Create a New Ticket]
This produces different results depending on whether the WikiStart page was accessed using a URL like http://server/project, http://server/project/wiki, or http://server/project/wiki/WikiStart (all of which display the WikiStart page)
In the first 2 cases, the url generated is http://server/newticket (incorrect)
In the last case, the url is http://server/project/newticket (correct)
Apparently, even though the same page is displayed for all 3 cases, the relative link is using the url used to access the page as the base, rather than the WikiStart page's real url (http://server/project/wiki/WikiStart).
Obviously this can be worked-around using an absolute url rather than a relative one, but given that this is actually used as an example here TracLinks#Server-relativelinks, it should probably be addressed.
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
Version: | → 0.10.3 |
---|
comment:2 by , 18 years ago
Keywords: | documentation added |
---|---|
Milestone: | → 0.11 |
comment:3 by , 17 years ago
Milestone: | 0.11.1 → 0.11 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I've updated the documentation at wiki:TracLinks#Server-relativelinks with the syntax as of 0.11.
Replying to anonymous:
Yes, the documentation should be updated for the 0.11 release. The behavior of relative links have changed in that release, to make them more useful and more consistent, see r4442.