#8576 closed defect (worksforme)
source: and export: links don't work with %20 in repository path
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | version control | Version: | 0.11.5 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have a repository path with a space in it.
Attempting to link from the wiki to a URL of the form 'source:File%20Name' does not work. It appears that the % is double-encoded and ends up as File%2520Name which is invalid,
The exact syntax in the wiki is:
[source:Technical%20Documentation Technical Documentation]
which renders as expected. However the generated link is to .../browser/Technical%2520Documentation
and clicking on this link yields a Trac error:
Trac Error No node /Technical%20Documentation at revision 2
The same applies to export: links and maybe others too…
Suggestion: Don't double URL-encode source: and export: links, or at least provide us some way of entering a space in the link URL.
Attachments (0)
Change History (3)
comment:1 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
Thanks cboos, I somehow missed that part of the documentation despite reading TracLinks *and* searching for it…!
comment:3 by , 15 years ago
Can someone please explain why this is a feature? %20 in URL's used to work (pre 0.11?). In the past I'd taught my users to navigate to the file using the source browser and copy the path from the URL to paste into their wiki edit pane for their source entries. Safari encode's the URL with %20 while Firefox does not.
The "%20" escape is indeed not supported on purpose, write instead:
Well, you actually don't even need to specify the label in this example:
See TracLinks#QuotingspaceinTracLinks.