diff --git a/src/TwigRuntimeExtension.php b/src/TwigRuntimeExtension.php index 13926c8..4d9859d 100644 --- a/src/TwigRuntimeExtension.php +++ b/src/TwigRuntimeExtension.php @@ -69,7 +69,7 @@ public function fullUrlFor(string $routeName, array $data = [], array $queryPara */ public function isCurrentUrl(string $routeName, array $data = []): bool { - $currentUrl = $this->basePath . $this->uri->getPath(); + $currentUrl = $this->uri->getPath(); $result = $this->routeParser->urlFor($routeName, $data); return $result === $currentUrl; @@ -84,7 +84,7 @@ public function isCurrentUrl(string $routeName, array $data = []): bool */ public function getCurrentUrl(bool $withQueryString = false): string { - $currentUrl = $this->basePath . $this->uri->getPath(); + $currentUrl = $this->uri->getPath(); $query = $this->uri->getQuery(); if ($withQueryString && !empty($query)) {