Description

url mapping does not work

Steps to reproduce

  1. Create a new url remap in wikiconfig.py, for instance  url_mappings = { 'http://testimages/': 'http://somehostname.com/images/'} 

  2. Try to use this to show an image in a page, i.e.  Here comes the image: http://testimages/test.gif 

  3. It does not seem that the url is remapped according to the specified mapping in wikiconfig.py.

MoinMoin Version

1.3.4

OS and Version

SUSE Linux 9.3

Python Version

2.4

Server Setup

Apache 2.0.53

Workaround

As suggested by johill, edit MoinMoin/parser/wiki.py. Search for

 # Get image name http://here.com/dir/image.gif -> image 

, and add the following line directly above it:

 word = wikiutil.mapURL(self.request, word) 

Plan


CategoryMoinMoinBugFixed CategoryRelease1.3.5

MoinMoin: MoinMoinBugs/URLMappingsOnImages (last edited 2007-10-29 19:10:49 by localhost)