Opened 9 years ago

Closed 9 years ago

# Wiki-Links of ListOfWikiPages Macro contain a wrong URL

Reported by: Owned by: falko.zurell@… Martin Scharrer normal ListOfWikiPagesMacro major 0.11

### Description

I've installed the ListOfWikiPagesMacro in my TRAC 0.11.2.1. It's working in Principle but the links to the pages it generates contain a wrong URL.

My Trac Base_URL is /my-track (set in [trac] section of the trac.ini)

but alle the generated Links point to /my-track/my-track/Pagename.

So somewhere the base url seems to be doubled.

### comment:1 Changed 9 years ago by Martin Scharrer

Status: new → assigned

### comment:2 Changed 9 years ago by Martin Scharrer

The correct usage of base_url is still a mystery to me. Should it be relative or absolute? When exactly is it used where? Trac needs better documentation here.

Did you tried it with an empty base_url? Works fine with me.

What setup are you using? Single or multi-project? Apache or standalone? What is your use_base_url_for_redirect setting?

### comment:3 Changed 9 years ago by Martin Scharrer

I changed now ([5112]) the source code. Please try the latest version and tell me if the error disappears.

### comment:4 Changed 9 years ago by anonymous

Resolution: → worksforme assigned → closed

I tried your new version. But it didn't change the behaviour. Then I looked at my base_url parameter and it was set to something like this:

base_url = /mytrac

I set this to empty:

base_url =

and the links are generated correct. So I'm not sure if this alone was the cause or if your changes and my change lead to the correct links. But as you said "base_url" at least has a major impact on that.

Thanks!

Falko

### Modify Ticket

Change Properties