feat: Force page reload for protected routes to trigger nginx auth

This commit is contained in:
Starstrike
2025-05-01 18:51:53 -04:00
parent e50122951a
commit e512962c19

View File

@@ -52,7 +52,7 @@ const EventList: React.FC = () => {
const handleAdminClick = (event: Event, e: React.MouseEvent) => {
e.stopPropagation();
navigate(`/admin/events/${event.slug}`);
window.location.href = `/admin/events/${event.slug}`;
};
const handleViewClick = (event: Event, e: React.MouseEvent) => {
@@ -74,7 +74,7 @@ const EventList: React.FC = () => {
<Button
variant="contained"
color="primary"
onClick={() => navigate('/create')}
onClick={() => window.location.href = '/create'}
size="large"
sx={{
py: 2,