KamoCRM

Replace window.location hard navigations with router.push/refresh

Fixkamo-internal
Shipped
11 martie 2026 la 17:38 UTC
Author
kamo
Commit
3ba58d4

All window.location.href, window.location.assign(), and window.location.reload() calls in page components caused full page reloads, wiping all React state including open tool windows (chat, softphone, calculator). Replaced with: - router.push() in account/page.tsx, EmployeeManager.tsx, LeadManager.tsx, PipelineDashboardTab.tsx - Next.js <Link> in **************** - router.refresh() in AvatarManager.tsx (re-fetches server data, preserves client state — no full page reload)

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing