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