Add exit after redirect in order to avoid other erros.

This commit is contained in:
KJ 2023-08-09 08:54:17 -04:00
parent eff0b86762
commit af673a68b8
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php
/**
* Router - DuckBrain
*
@ -100,6 +100,7 @@ class Router {
*/
public static function redirect(string $path): void {
header('Location: '.static::basePath().substr($path,1));
exit;
}
/**