Skip to content

Commit 0a10ec6

Browse files
committed
removed redundant removing ending slash from $basePath - after correction of UrlScript
1 parent 2fa9a9d commit 0a10ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/MicroPresenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public function createTemplate(?string $class = null, ?callable $latteFactory =
124124
$template->context = $this->context;
125125
if ($this->httpRequest) {
126126
$url = $this->httpRequest->getUrl();
127-
$template->baseUrl = rtrim($url->getBaseUrl(), '/');
128-
$template->basePath = rtrim($url->getBasePath(), '/');
127+
$template->baseUrl = $url->getBaseUrl();
128+
$template->basePath = $url->getBasePath();
129129
}
130130

131131
return $template;

0 commit comments

Comments
 (0)