Skip to content

Commit

Permalink
Merge pull request #1 from sfcod/fix-uri
Browse files Browse the repository at this point in the history
@dimitu Thx, great job!
  • Loading branch information
lexxorlov committed Sep 26, 2019
2 parents 380a219 + 91ca4a9 commit 835d515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resolvable/Resolver/RequestUrlResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function resolve(string $path): string
if ($this->requestStack->getCurrentRequest()) {
$request = $this->requestStack->getCurrentRequest();

$baseUrl = rtrim(str_replace($request->getRequestUri(), '', $request->getUri()), '/');
$baseUrl = rtrim($request->getSchemeAndHttpHost() . $request->getBaseUrl(), '/');
} else {
$baseUrl = '';
}
Expand Down

0 comments on commit 835d515

Please sign in to comment.