Description
url mapping does not work
Steps to reproduce
Create a new url remap in wikiconfig.py, for instance url_mappings = { 'http://testimages/': 'http://somehostname.com/images/'}
Try to use this to show an image in a page, i.e. Here comes the image: http://testimages/test.gif
- 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
- Priority: low
Assigned to: ThomasWaldmann
- Status: fixed in moin--main--1.3--patch-860