feat: Force page reload for protected routes to trigger nginx auth
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user