Skip to content

Fix playground link redirect to use /docs/playground in production#205

Merged
jlowin merged 1 commit intomainfrom
claude/slack-fix-playground-link-redirect-mygSi
Feb 27, 2026
Merged

Fix playground link redirect to use /docs/playground in production#205
jlowin merged 1 commit intomainfrom
claude/slack-fix-playground-link-redirect-mygSi

Conversation

@jlowin
Copy link
Member

@jlowin jlowin commented Feb 27, 2026

The "Run in Playground" link on component preview cards was resolving to prefab.prefect.io/playground instead of prefab.prefect.io/docs/playground. This happened because the relative path ../playground doesn't work correctly for pages at different depths in the docs hierarchy.

The fix detects local vs production environments and uses the appropriate absolute path—/playground locally, /docs/playground in production. Also fixed the same incorrect URL in the README files.

Closes https://prefecthq.slack.com/archives/C0AH6V5417E/p1772166460619149

🤖 Generated with Claude Code

https://claude.ai/code/session_01X2frBax1JLrYVzgTUVD2k2

The "Run in Playground" link was incorrectly resolving to
prefab.prefect.io/playground instead of prefab.prefect.io/docs/playground.

- Updated component-preview.mdx to detect local vs production and use
  the correct path (/playground locally, /docs/playground in production)
- Fixed static playground URLs in README.md and renderer/README.md

https://prefecthq.slack.com/archives/C0AH6V5417E/p1772166460619149

🤖 Generated with Claude Code

https://claude.ai/code/session_01X2frBax1JLrYVzgTUVD2k2
@marvin-context-protocol marvin-context-protocol bot added the bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. label Feb 27, 2026
@jlowin jlowin merged commit ec2883e into main Feb 27, 2026
8 checks passed
@jlowin jlowin deleted the claude/slack-fix-playground-link-redirect-mygSi branch February 27, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants