diff --git a/backlog/tasks/task-high.1 - Bare-domain-module-routing-—-rspace.online-moduleId-as-default.md b/backlog/tasks/task-high.1 - Bare-domain-module-routing-—-rspace.online-moduleId-as-default.md new file mode 100644 index 0000000..00070ff --- /dev/null +++ b/backlog/tasks/task-high.1 - Bare-domain-module-routing-—-rspace.online-moduleId-as-default.md @@ -0,0 +1,32 @@ +--- +id: TASK-HIGH.1 +title: 'Bare-domain module routing — rspace.online/{moduleId} as default' +status: Done +assignee: [] +created_date: '2026-02-26 03:34' +updated_date: '2026-02-26 03:34' +labels: [] +dependencies: [] +parent_task_id: TASK-HIGH +--- + +## Description + + +App dropdown links go to rspace.online/r* (bare domain) instead of demo.rspace.online/r*. Only 'Try Demo' button links to demo subdomain. Server internally rewrites bare-domain module paths to /demo/{moduleId}. + + +## Acceptance Criteria + +- [x] #1 App dropdown generates bare-domain URLs (/{moduleId}) on rspace.online +- [x] #2 Server rewrites rspace.online/{moduleId} → /demo/{moduleId} internally +- [x] #3 url-helpers isBareDomain() + getCurrentSpace/Module handle bare domain +- [x] #4 Try Demo button visible on bare domain, hidden on demo.rspace.online +- [x] #5 Auto-provision redirects authenticated users to personal subdomain + + +## Implementation Notes + + +Implemented in commit a732478. Changed url-helpers.ts (isBareDomain, rspaceNavUrl), server/index.ts (fetch handler rewrite), server/shell.ts (data-hide + client JS for Try Demo). Merged to main. +