missing slash changing templates & function permalinks

Found a bug? Tell us!!
Post Reply
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

missing slash changing templates & function permalinks

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Committed.
Judebert
---
Website | Wishlist | PayPal
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post 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
Post Reply