Description
URLs generated for icons and links at the bottom of an Edit page do not take into account the value of the X-Moin-Location HTTP header. Specifically, this text:
For more help, see HelpOnEditing or SyntaxReference.
I think this can potentially happen for any cached page.
What is the X-Moin-Location header?
It's only mentioned on HelpOnConfiguration/IntegratingWithApache. It lets Moin know that it needs to prepend the header's data to all URLs so that link targets will be generated correctly. This makes it possible to have a standalone Moin server (serving the wiki from /) integrated into site served by Apache with mod_proxy (so that the wiki appears at /mywiki).
Steps to reproduce
Configure as described in HelpOnConfiguration/IntegratingWithApache under 'Apache 2 Setup'
- Visit the wiki. Most links work as normal
- Edit a page. The links and icons at the bottom of the syntax reference do not have the correct URL.
Example
The first link points to https://hostname/HelpOnEditing but it should point to https://hostname/mywiki/HelpOnEditing.
Details
MoinMoin Version |
1.5.5a |
OS and Version |
Debian GNU/Linux 3.1 ("sarge") |
Python Version |
2.3.5 |
Server Setup |
Twisted server behind an Apache 2 proxy |
Server Details |
|
Workaround
Cleaning caches causes links to be generated correctly again.
$ find -name cache -exec rm -r {} \;
Discussion
I guess this happened because the broken links were generated (and cached) before I started using the X-Moin-Location http header. Data relying on the value of this header should not be cached... but that would make the cache kind of useless. I'll add a note to HelpOnConfiguration/IntegratingWithApache so that anyone else who runs into this problem can find the workaround easily.
Plan
- Priority:
- Assigned to:
- Status: