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