This commit is contained in:
9 files changed
+68
-31
No files matched your search
@@ -14,15 +14,9 @@ class Redirect implements IRedirect
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
public function getUrl(): string
|
||||
public function getTarget(): string
|
||||
{
|
||||
if (preg_match('/^http(s)?/', $this->target) === 1) {
|
||||
$link = $this->target;
|
||||
} else {
|
||||
$link = \Container::$request->getBase() . $this->target;
|
||||
}
|
||||
|
||||
return $link;
|
||||
return $this->target;
|
||||
}
|
||||
|
||||
public function getHttpCode(): int
|
||||
|
||||
Reference in new issue
Block a user