Skip to content

fix: replace window.location.href with router.push in playground-header#483

Open
narutamaaurum wants to merge 1 commit into
piyushdotcomm:mainfrom
narutamaaurum:fix/playground-header-router-push
Open

fix: replace window.location.href with router.push in playground-header#483
narutamaaurum wants to merge 1 commit into
piyushdotcomm:mainfrom
narutamaaurum:fix/playground-header-router-push

Conversation

@narutamaaurum

Copy link
Copy Markdown

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:

  1. Imports from
  2. Uses for client-side navigation

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.

Addresses issue piyushdotcomm#461 - uses Next.js router.push() for client-side navigation instead of full page reload.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

👋 Thanks for opening a PR, @narutamaaurum!

Your PR has entered the 🚦 PR Review Pipeline.

Standard PR detected — your PR will follow the standard review pipeline.


What happens next

Stage Reviewer Checks
Stage 1 — Automated Validation 🤖 Bot DCO · Format · AI/Slop · Duplicate
Stage 2 — Human Review 👥 Maintainer Code + Quality Review
Stage 3 — PA / Maintainer Review 🔑 Project Admin Final Merge Decision

A pipeline status comment will appear below and update automatically as your PR progresses.


While you wait

  • Sign all commits (git commit -s)
  • Link your issue (Closes #123)
  • Use a feature branch (not main)
  • Avoid unrelated changes

This comment is posted only once.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@narutamaaurum, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 31ea0a9f-b260-4632-a00a-b08d8ef2ae9d

📥 Commits

Reviewing files that changed from the base of the PR and between f12b223 and 52b8e1b.

📒 Files selected for processing (1)
  • modules/playground/components/playground-header.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: window.location.href in playground-header causes full-page reload instead of client-side navigation

1 participant