Edgewall Software
Modify

Opened 17 years ago

Closed 16 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 anonymous, 17 years ago

Version: 0.10.3

in reply to:  description comment:2 by Christian Boos, 17 years ago

Keywords: documentation added
Milestone: 0.11

Replying to anonymous:

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.

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.

comment:3 by osimons, 16 years ago

Milestone: 0.11.10.11
Resolution: fixed
Status: newclosed

I've updated the documentation at wiki:TracLinks#Server-relativelinks with the syntax as of 0.11.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.