fix: replace window.location.href with router.push in playground-header#483
fix: replace window.location.href with router.push in playground-header#483narutamaaurum wants to merge 1 commit into
Conversation
Addresses issue piyushdotcomm#461 - uses Next.js router.push() for client-side navigation instead of full page reload.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
👋 Thanks for opening a PR, @narutamaaurum!Your PR has entered the 🚦 PR Review Pipeline.
What happens next
A pipeline status comment will appear below and update automatically as your PR progresses. While you wait
This comment is posted only once. |
|
Warning Review limit reached
More reviews will be available in 22 minutes and 10 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #461 - window.location.href in playground-header causes full-page reload instead of client-side navigation
The "Back to Dashboard" button in the playground header used which triggers a full browser page reload instead of Next.js client-side SPA navigation.
This fix:
This preserves the SPA session (Monaco Editor, WebContainer SDK, Yjs, AI state) without the white flash and full re-download of assets. Also enables future unsaved-changes guards to work correctly.