Skip to content

fix(playground): redirect bare /playground to default project - #189

Merged
mkayander merged 3 commits into
mainfrom
cursor/bare-playground-redirect-b999
Sep 7, 2026
Merged

mkayander merged 3 commits into
mainfrom
cursor/bare-playground-redirect-b999

Conversation

@mkayander

@mkayander mkayander commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Problem

Clicking the Playground nav link opens the project browser on bare /playground. Closing the browser without selecting a project leaves the panel area in infinite loading because no project is initialized.

Solution

  • Server: Remove the SEO exception that kept bare /playground from redirecting; redirect to last-visit cookie path or first public project (same as incomplete slug paths).
  • Client: Mirror the same logic in useClientCanonicalPlaygroundRedirect for soft navigations.
  • Exception: ?view=browse still lands on bare /playground with the project browser open (home CTA, explicit browse intent).
  • Remove useBarePlaygroundBrowseLanding workaround and restore usePlaygroundPanelsReady to require a project slug on desktop.

Demo

playground_bare_redirect_fix_demo.mp4

Playground nav redirects to project

Closing browse redirects to project

Testing

  • Unit tests updated for server redirect + panels ready hook
  • E2E: /de/playground now expects redirect to canonical project path
  • Manual: Playground nav + close browse both redirect to loaded project (no infinite spinner)

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 10:49
Bare /playground no longer shows an empty panel with infinite loading after
closing the project browser. Server and client canonical redirects now pick
the last-visit path or first public project, except when ?view=browse is set.

Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dstruct Ready Ready Preview Sep 7, 2026 1:45pm UTC

Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
@mkayander
mkayander merged commit 594e084 into main Sep 7, 2026
7 checks passed
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
## [1.392.1](v1.392.0...v1.392.1) (2026-09-07)

### Bug Fixes

* **playground:** redirect bare /playground to default project ([#189](#189)) ([594e084](594e084))
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.392.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants