Opened 20 years ago
Closed 19 years ago
#3096 closed defect (wontfix)
Wiki-Links like wiki:pagename are not displayed as pagename
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.9.5 |
| Severity: | minor | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Wiki-Links like wiki:pagename are not displayed as !pagename but rather as wiki:pagename.
IMHO "wiki:pagename" in the wiki text should be displayed as "pagename".
Example:
wiki:pagename should look like pagename but doesn't.
Solution: pass target instead of match as the last argument to _make_link
in _shref_formatter (trac/wiki/formatter.py).
See attached patch
Attachments (2)
Change History (6)
by , 20 years ago
| Attachment: | shref_formater.patch added |
|---|
comment:1 by , 20 years ago
comment:3 by , 19 years ago
| Description: | modified (diff) |
|---|---|
| Owner: | changed from to |
As athomas said, when using [wiki:pagename], only pagename is displayed.
When using wiki:pagename, currently wiki:pagename is displayed as well,
which is not so nice. It would look better if the ":" would simply be omitted,
in this case.
That would be especially nice when writing things like:
That's a new feature of Trac in milestone:0.10
which currently renders as:
That's a new feature of Trac in milestone:0.10
and with the proposed change would render as:
That's a new feature of Trac in milestone 0.10
The implementation should take care of not breaking the http://... links,
see attachment:keep_local_ns.diff
by , 19 years ago
| Attachment: | keep_local_ns.diff added |
|---|
Omit the ":" when displaying non-labelled TracLinks (e.g. milestone:0.10 → milestone 0.10)
comment:4 by , 19 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Well, omitting the ":" in some case and not in others is not that robust, and probably a bit unintuitive as well. Dropping the idea.



Carefull the patch "breaks" full URL links
Example: http://projects.edgewall.com is than dispayed as //projects.edgewall.com
Internally the URL is still correct and works like before.