diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index 3bef5fc9..a25440f3 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -715,7 +715,7 @@ function serendipity_currentURL($strict = false) { } $uri['path'] = preg_replace('@^' . preg_quote($serendipity['serendipityHTTPPath']) . '@i', ($strict ? '/' : ''), $uri['path']); $uri['path'] = preg_replace('@^(&)?' . preg_quote($serendipity['indexFile']) . '(&)@i', '', $uri['path']); - $url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst; + $url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?/' . $uri['path'] . $qst; $url = str_replace( array( $serendipity['indexFile'] . '&',