mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 05:51:55 +08:00
fix: Replace router.push with window.location.href in ErrorCard
- Modify error redirection to use window.location.href for full page reload - Ensure proper error parameter propagation during OAuth authorization - Maintain consistent error handling behavior across different scenarios
This commit is contained in:
parent
7c05f5f70e
commit
f276f28118
@ -1,3 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
import { AlertCircle } from "lucide-react";
|
||||
|
||||
@ -33,7 +35,7 @@ export function ErrorCard({
|
||||
if (error) url.searchParams.set("error", error);
|
||||
if (errorDescription)
|
||||
url.searchParams.set("error_description", errorDescription);
|
||||
router.push(url.toString());
|
||||
window.location.href = url.toString();
|
||||
} else {
|
||||
router.push("/");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user