Skip to content

Commit

Permalink
Updated to version 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed May 9, 2017
1 parent 22cbb1a commit 2893ec8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ public static function getBaseUrl() {

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

$currentPage = self::addBackslash(self::getCurrentPage());
$url = self::addBackslash(self::getCurrentPage());

$url = trim(str_replace($uri, '', $currentPage), self::DS);
if ($uri !== self::DS) {

$url = trim(str_replace($uri, '', $url), self::DS);
}

return self::addBackslash($url);
}
Expand Down

0 comments on commit 2893ec8

Please sign in to comment.