This commit is contained in:
Marta Kowalska
2025-12-22 20:22:30 +00:00
parent d4429300aa
commit bb81e7a336
90 changed files with 3676 additions and 1828 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
import { useEffect } from 'react';
import { useEffect, useRef } from 'react';
import {
Routes,
Route,
@@ -12,7 +12,9 @@ export default function Router({ onRouteChange }) {
const location = useLocation();
const navigate = useNavigate();
const lastRef = useRef(location.pathname);
useEffect(() => {
if (lastRef.current === location.pathname) return;
if (location.pathname === '/') {
navigate('/base/willow', { replace: true });
} else {