Page 1 of 1

missing slash changing templates & function permalinks

Posted: Sun Dec 17, 2006 1:26 pm
by Timbalu
Hi

Since upgrading to 1.0.4 there is a missing slash, when changing templates while looking at something like

Code: Select all

/s9y/plugin/bookmarks 
.
Now I switch templates and it changes to

Code: Select all

/s9y/index.php?plugin/bookmarks
which is ok, except the missing slash. It is working with

Code: Select all

/s9y/index.php?/plugin/bookmarks
I recognized this behaviour using Falks serendipity_event_bookmarks-1.0.1beta4, but
it could again be a matter of functions_permalinks.

Regards, Ian

Update:

Code: Select all

function serendipity_currentURL() {

-    $url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst;
+    $url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?/' . $uri['path'] . $qst;
is solving the problem.

Posted: Mon Dec 18, 2006 5:04 pm
by judebert
Committed.

Posted: Mon Dec 18, 2006 5:47 pm
by Timbalu
Sorry, missed this at end of function, so nothing gets messed up.

Code: Select all

+    $url = str_replace('?//', '?/', $url);

    return $url;
}
Did anybody else expect this problem?

Ian