Skip to content

feat: add workspace to URL via /w/<workspace_id>/ prefix#8563

Draft
centdix wants to merge 3 commits intomainfrom
add-workspace-to-url
Draft

feat: add workspace to URL via /w/<workspace_id>/ prefix#8563
centdix wants to merge 3 commits intomainfrom
add-workspace-to-url

Conversation

@centdix
Copy link
Copy Markdown
Collaborator

@centdix centdix commented Mar 27, 2026

Summary

  • Adds workspace ID to frontend URLs: /scripts/get/f/foo/w/<workspace_id>/scripts/get/f/foo
  • Uses SvelteKit reroute hook to strip /w/<workspace> before route resolution — no file moves needed
  • Updates goto() wrapper to auto-prefix workspace-scoped paths
  • Adds wsBase store for <a href> links across ~50 components
  • Backward-compatible: old URLs without /w/ redirect to new format
  • Workspace switching via sidebar navigates to /w/<new_workspace>/current_path

Test plan

  • Navigate to /w/<ws>/scripts — scripts page loads for correct workspace
  • Click sidebar links — URLs include /w/<ws>/
  • Switch workspace via sidebar — URL updates to /w/<new_ws>/current_path
  • Old bookmark without /w/ — redirects to /w/<stored_ws>/...
  • URL with ?workspace=X — redirects to /w/X/...
  • Login → workspace select → navigates to /w/<ws>/
  • Deep link /w/<ws>/flows/get/f/my_flow — opens correct flow
  • Browser back/forward works across workspace switches

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 27, 2026

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 929a8de
Status: ✅  Deploy successful!
Preview URL: https://31774ff1.windmill.pages.dev
Branch Preview URL: https://add-workspace-to-url.windmill.pages.dev

View logs

centdix and others added 2 commits March 27, 2026 15:11
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant