Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
sheychen | 3c42b524d7 |
|
@ -74,7 +74,7 @@ class Router{
|
|||
* @return void
|
||||
*/
|
||||
public static function redirect(string $url, bool $stop = true){
|
||||
header('Location: '.$url);
|
||||
header('Location: /'.$url);
|
||||
if($stop)
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue