unify url handling for routes and redirect
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
bence committed 2023-04-16 20:33:22 +02:00
1 parent 014a548096
commit 427426bebe
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ class Redirect implements IRedirect
if (preg_match('/^http(s)?/', $this->target) === 1) {
$link = $this->target;
} else {
$link = \Container::$request->getBase() . '/' . $this->target;
$link = \Container::$request->getBase() . $this->target;
}
return $link;