Edgewall Software

Opened 15 years ago

Closed 14 years ago

#6589 closed enhancement (wontfix)

[PATCH] to disable highlighting of all missing links

Reported by: shansen@… Owned by: Christian Boos
Priority: normal Milestone:
Component: wiki system Version: 0.11b1
Severity: major Keywords: patch
Cc: shansen@… Branch:
Release Notes:
API Changes:
Internal Changes:


This has nothing to do with the ignore_missing_links option :)

In my situation, it's undesirable for missing links to be highlighted, as they are not always missing. A IRequestFilter plugin we are using in our internal/corporate trac will do things like convert spaces to underscores, look for plural/not plural versions of pages, and redirect as appropriate. In these cases we'd prefer the original link to just look like any other link.

The attached simple patch adds a 'highlight_missing_pages' option to wiki/api.py:WikiSystem that defaults to True. When set to False, all pages look like normal links, even if a page doesn't actually exist. We'd much prefer a situation where "doesn't exist" was determined when one gets to the page.

Attachments (1)

highlight_missing_pages.patch (1.1 KB ) - added by shansen@… 15 years ago.

Download all attachments as: .zip

Change History (5)

by shansen@…, 15 years ago

comment:1 by shansen@…, 15 years ago

Keywords: patch added
Severity: normalmajor
Version: 0.11b1

(… as I now read the NewTicketGuidelines and attempt to comply)

comment:2 by anonymous, 15 years ago

Cc: shansen@… added

comment:3 by Piotr Kuczynski <piotr.kuczynski@…>, 14 years ago

Summary: Patch to disable highlighting of all missing links[PATCH] to disable highlighting of all missing links

comment:4 by Remy Blank, 14 years ago

Resolution: wontfix
Status: newclosed

As this only seems to be useful to a specific plugin, I suggest this be implemented as part of the plugin, possibly through monkey-patching WikiSystem._format_link().

Modify Ticket

Change Properties
Set your email in Preferences
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.