diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f751e4e..6275b03 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -59,6 +59,7 @@ function Loading() { function RequireAuth({ children }: { children: React.ReactNode }) { const user = useAuthStore((s) => s.user); const location = useLocation(); + const pathname = location.pathname; // در صورت داشتن شناسه پیش‌نویس (از ربات بله)، دسترسی مستقیم به ویزارد بدون لاگین مجاز است const searchParams = new URLSearchParams(location.search);