Skip to content

Commit

Permalink
Avoid blocking assets if the panel is unregistered
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Feb 15, 2025
1 parent 3a644fa commit 7d1c03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
return new RedirectResponse($site->uri());
}

if ($panel->route() !== '/register/') {
if ($panel->route() !== '/register/' && !Str::startsWith($panel->route(), '/assets/')) {
return new RedirectResponse($panel->uri('/register/'));
}
}
Expand Down

0 comments on commit 7d1c03c

Please sign in to comment.