Add exit after redirect in order to avoid other erros.
This commit is contained in:
parent
eff0b86762
commit
af673a68b8
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Router - DuckBrain
|
* Router - DuckBrain
|
||||||
*
|
*
|
||||||
@ -100,6 +100,7 @@ class Router {
|
|||||||
*/
|
*/
|
||||||
public static function redirect(string $path): void {
|
public static function redirect(string $path): void {
|
||||||
header('Location: '.static::basePath().substr($path,1));
|
header('Location: '.static::basePath().substr($path,1));
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user