Skip to content

Commit 2893ec8

Browse files
committed
Updated to version 1.1.2
1 parent 22cbb1a commit 2893ec8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Url.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ public static function getBaseUrl() {
6363

6464
$uri = self::addBackslash(self::getUriMethods(), 'both');
6565

66-
$currentPage = self::addBackslash(self::getCurrentPage());
66+
$url = self::addBackslash(self::getCurrentPage());
6767

68-
$url = trim(str_replace($uri, '', $currentPage), self::DS);
68+
if ($uri !== self::DS) {
69+
70+
$url = trim(str_replace($uri, '', $url), self::DS);
71+
}
6972

7073
return self::addBackslash($url);
7174
}

0 commit comments

Comments
 (0)