Edgewall Software

Ticket #4492 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Automatic backlinks for tickets based on document referer

Reported by: daniel.oconnor@… Owned by: cboos
Priority: normal Milestone: 2.0
Component: wiki system Version: 0.10.3
Severity: normal Keywords: xref
Cc:

Description

This is distinct from TracCrossReferences (similar to BackLinks (#611)); but solves a similar problem.

  • Every view of a ticket records the referring URL; and increments the count for number of referrals.
  • The ticket page shows the number of referrers as a 'pages and tickets which mention this ticket' widget

A simple list of allowed URL patterns or referrers can prevent spam easily.

The benefit of this approach is to organically strengthen the relationship between tickets, rather than rely on explicit macros. Garbage collection could be optionally included; so that links dissolve over time.

Attachments

Change History

Changed 2 years ago by cboos

  • keywords xref added
  • owner changed from jonas to cboos
  • milestone set to 2.0

Interesting, that would rank the back references from actual use of the forward references instead of the age of references.

A simple list of allowed URL patterns or referrers can prevent spam easily.

If the allowed URLs are local ones, as the rest of your description suggests, this shouldn't be needed. But then, I see more value in your suggestion if the page would list any referrers, not just those from the local Trac.

This can be implemented by a plugin, but there are probably a few things that could be done in Trac to ease the implementation of such a plugin, e.g.

  • pass the main WikiContext to the post-request filters, so that the plugin doesn't have to guess which resource was targeted
  • provide an extension point in the Cross-references view, so that additional types of cross-references (like Referrers) can be provided.

Add/Change #4492 (Automatic backlinks for tickets based on document referer)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.