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:

/!\ I think this can potentially happen for any cached page.

What is the X-Moin-Location header?

Steps to reproduce

  1. Configure as described in HelpOnConfiguration/IntegratingWithApache under 'Apache 2 Setup'

  2. Visit the wiki. Most links work as normal
  3. 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.

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


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/SiteLocationIgnoredOnEditPage (last edited 2007-10-29 19:19:20 by localhost)