On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels <andreengels(a)gmail.com> wrote:
On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill
<magill(a)icloud.com>wrote;wrote:
I'm working on a non wikipedia mediawiki --
lotrowiki.com.
Attempting to use the browser function on replace (b) yields a 404
because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
Not being a Python programmer, so far I have not been able to figure out
where this "prefix" is coming from.
It is correctly finding the hostname and the pagename... but it is
inserting "wiki/" in front of the pagename.
Can someone tell me what module is doing this?
It's nicepath() in family.py. In the family file, add:
def nicepath(self, code):
return '/'
And to avoid having you back here for a very similar problem tomorrow,
also add:
def scriptparth(self, code):
return ''
Just as I hit 'send' I noticed that there's a typo there: It should be
"scriptpath", not "scriptparth".
--
André Engels, andreengels(a)gmail.com