Update ui/litellm-dashboard/src/components/networking.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
tyh.carl 2026-05-20 10:20:28 +08:00 • committed by GitHub
parent 6137c16c0e
commit b3c5427d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -354,7 +354,7 @@ export const handleError = async (errorData: string | any) => {
const browserLocation = getWindowLocation();
if (browserLocation) {
const pathname = browserLocation.pathname;
if (pathname.startsWith("/")) {
if (pathname.startsWith("/") && !pathname.startsWith("//")) {
window.location.href = pathname;
}
}