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

@ -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;
} }
/** /**