Modify

Ticket #271 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Bad URL when using Apache's TracEnvParentDir

Reported by: tiennou7@… Owned by: moschny
Priority: normal Milestone:
Component: trac.tracnav Version: tracnav-devel
Severity: major Keywords:
Cc:

Description

The URL generated by clicking on the "edit" link is not aware of the fact that it needs to add the trac env path to get to the wiki...

Let me explain : I have configured my Apache server to serve Trac's from /var/trac (currently there is only one project, /var/trac/myproject) using TracEnvParentDir. This means that connecting to http://localhost shows me a list of Trac's from /var/trac. When I access http://localhost/myproject and click on the "edit" link of the TracNav, I get redirected to http://localhost/wiki/TOC?action=edit instead of http://localhost/myproject/wiki/TOC?action=edit which displays "Environment not found" (quite confusing)

I'm using Trac 0.11dev and TracNav 4.0pre1.

Attachments

Change History

comment:1 follow-up: ↓ 2 Changed 6 years ago by moschny

  • Status changed from new to assigned

Should be fixed in [3157], please try.

comment:2 in reply to: ↑ 1 Changed 6 years ago by anonymous

Replying to moschny: Hmm, ditched my TracNav 4.0pre1 for your svn 3.92 (wondering why the other was one version up). Now I get a Trac Error :

Error: Macro TracNav(None) failed 'Formatter' object has no attribute 'args'

comment:3 Changed 6 years ago by moschny

Note that 3.92 is for Trac 0.10, while 4.0preX is for Trac 0.11. You used the wrong svn location. Please see TracNav/DownloadAndInstall for instructions.

Meanwhile, I made a new egg which is available on that page, too.

comment:4 Changed 6 years ago by anonymous

  • Status changed from assigned to closed
  • Resolution set to fixed

Ok, got correct version this time ;-) Now my TracNav bar appears and the link works. Thanks !

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.