Generate TracLinks for the page, put anchors on paragraphs


This plugin offers the following dual functionality:

  1. Generate TracLinks in search box for { wiki: report: query: ticket: attachment: source: diff: log: milestone: timeline: search: comment: }.
    (in ja-JP) 表示しているページのTracLinksを検索ボックスに表示します。
  2. Add anchor in paragraphs and list items in wiki and ticket.
    (in ja-JP) Wikiとチケットにある段落やリスト項目にアンカーを追加します。

The search box has the ticket link added to it:

The web address to the paragraph is shown when hovering over the paragraph:

Examples of TracLinks generated

  • wiki:WikiStart
  • wiki:/TracGuide#AdministratorGuide
  • ticket:1
  • ticket:1?version=1
  • report:1
  • report:7
  • query:owner=admin
  • attachment:test.txt:ticket:1
  • attachment:image.png:wiki:WikiStart
  • attachment:"file name with spaces.txt:wiki:with spaces"
  • log:@1:2
  • log:/trunk@1
  • log:anotherrepo/trunk@1
  • diff:@1:2
  • diff:trunk@1:2
  • diff:trunk//tags
  • diff:trunk@1//tags@2
  • diff:anotherrepo/trunk@2//anotherrepo/tags@3
  • milestone:milestone1
  • timeline:2012-02-22T15:31:04+09:00
  • search:searchtext
  • source:/trunk/file.txt
  • source:/trunk/file.txt@2
  • source:anotherrepo/trunk/file.txt
  • source:anotherrepo/trunk/file.txt@3
  • comment:1:ticket:1
  • source:/trunk/file.txt#L20
  • [/newticket?owner=admin&priority=major&status=new&type=defect&reporter=admin]
  • ticket:1#no1

See also: trac:ticket:9448

Bugs/Feature Requests

Existing bugs and feature requests for TracLinksPlugin are here.

If you have any issues, create a new ticket.


4 / 5


Download the zipped source from here.


You can check out TracLinksPlugin from here using Subversion, or browse the source with Trac.


  1. Install the plugin:
  2. Enable the plugin by adding the following to your trac.ini file:
    traclinks.* = enabled

Recent Changes

15661 by matobaa on 2016-07-11 16:22:22
TracLinksPlugin: follows changeset:15474
15658 by matobaa on 2016-07-11 16:18:19
TracLinksPlugin: Fix a bug that browsers doesn't scroll to the hash anchor when traclinks.textbox.TextBox is not enabled
15505 by matobaa on 2016-04-27 01:04:34
TracLinksPlugin: update copyright regarding to r15504


Author: matobaa
Maintainer: Matoba Akihiro

Last modified 12 days ago Last modified on Oct 17, 2016, 8:57:31 AM

Attachments (2)

Download all attachments as: .zip