Closed GoogleCodeExporter closed 8 years ago
The calendar uses $wgScript to build the URL links so I can safely say your
assumption is correct. I dont have checks in place for short URLs using the
no-root
method.
You may try changing the following around line 1179. This sets the main
calendar
path thought out the application.
$wikiRoot = $wgScript . "?title=";
Original comment by kenyu73
on 9 Apr 2009 at 8:10
I've been playing around with that variable, the problem however is:
After saving the URL gets rewritten to $HOST/Calendar:whatever, which doesnt
exist
according to the webserver. I think that this needs a specific var in
Calendar.php
that checks the vars declared in LocalSettings.php, like $wgArticlePath and
$wgScriptPath. The problem is, i'm not really into programming. But i'll see
what i
can cook up.
Original comment by lieter.p...@gmail.com
on 15 Apr 2009 at 8:34
When editting templates(after clicking "events") the format is:
$HOST/w/index.php?title=Calendars:My+Calendars/My+first+calendar/4-2009%20-
Template&action=edit
This doesnt get rewritten, and saving the event results in a successful
save, but I get redirected to
$HOST/Calendars:My Calendars/My first calendar/4-2009_-Template
------------------
The way I build the link works and saves. However, your saying that once you
save
the edits, MW redirects to the "correct" rewritten URL, but errors even though
it
shouldn't error...? Thats odd.
I dont have the ability to re-created this as my Apache box doesn't allow me
access
below my wiki web root folder.
Can you confirm that "$HOST/Calendars:My Calendars/My first calendar/4-2009_-
Template" is the correct URL, but MW errors on it?
Original comment by kenyu73
on 18 Apr 2009 at 3:39
I've read up on this a bit more. I don't see how AFTER the template is saved it
would cause your 404 error. If there were a problem with the calendar "ugly"
URLs,
it would error before getting to the edit page.
Check the link bwlow out.. there's a few posts about using:
$wgRedirectScript = "$wgScriptPath/redirect.php";
http://www.mwusers.com/forums/showthread.php?t=932
Original comment by kenyu73
on 18 Apr 2009 at 4:23
I've come across the source of the problem. I only saw it when i created an
article
with "and/or" in the title. The server goes 404 when a / is in the link to the
article. So i only saw it using the calendar extension. Thanks for all the help
:).
Original comment by lieter.p...@gmail.com
on 28 Apr 2009 at 7:28
Original comment by kenyu73
on 1 May 2009 at 2:15
Original issue reported on code.google.com by
lieter.p...@gmail.com
on 9 Apr 2009 at 2:07