Faulty link in DBAuthPlugin when running standalone on multiproject
|Reported by:||Nortek||Owned by:||Brad Anderson|
I have a multiproject Trac site which runs as a standalone server. One of the projects is named NIP. So when I open up the project: http://127.0.0.1:8000/NIP i get the login link in the navigation menu. However the login link links to http://127.0.0.1:8000/login with the result that I get the message : "Environment not found". If I understand this right the login should link to : http://127.0.0.1:8000/NIOP/login instead. In which case everthink works fine. The same problem happens when logging out.
Looking into the sourcecode I compared the "get_navigation_items" method with the one in the Trac project and the difference here was that the login link was generated differently: Trac : req.href.login() DBAuthg : self.env.href.login()
So when changing this it now seems to work as it should.
Is this a fault with the plugin or have I setup something wrong?