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

View File

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