Edgewall Software

Opened 13 years ago

Last modified 4 years ago

#10350 new enhancement

e.g. [#1234] in svn commit 5678 comment generates wrong Trac link

Reported by: fbrettschneider@… Owned by:
Priority: normal Milestone: next-major-releases
Component: wiki system Version: 0.12.2
Severity: minor Keywords: traclinks
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


The effect is that the Trac generated link will be http://......./changeset/5678#1234 which on clicking does not lead to the ticket 1234. The link should rather be http://....../ticket/1234.

IMHO the link generator should ignore the brackets if it sees the #.

The whole problem is because some people are used to brackets instead of parenthesis when they write additional comments in their texts. Actually, they should write (#1234) , but I think you should also be able to stand the one with brackets.

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 13 years ago

Component: generalwiki system
Keywords: traclinks added
Milestone: next-major-0.1X
Severity: normalminor

[#<id>] is the syntax for creating a relative link. As a digit is not allowed to start an ID (Name), we could make the relative link syntax a bit stricter, so that [#1234] wouldn't match.

comment:2 by Ryan J Ollos, 10 years ago

Keywords: traclink added; traclinks removed

comment:3 by Ryan J Ollos, 10 years ago

Keywords: traclinks added; traclink removed

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

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