Audit and fix ~60 violations across 47 files where URLs were constructed
as /{space}/moduleId instead of /moduleId (subdomain provides the space).
- Add getModuleApiBase() helper to shared/url-helpers.ts
- Fix client components: use getModuleApiBase() for fetch URLs,
rspaceNavUrl() for navigation
- Fix server routes: use c.get("isSubdomain") for redirects and
JSON response URLs
- Fix OAuth callbacks (notion, google, clickup): subdomain-aware redirects
- Fix email notification URLs (rvote): use {space}.rspace.online format
- Fix webhook registration (rtasks/clickup): subdomain-aware endpoint URL
- Replace broken #getSpaceSlug() methods in folk-feed, folk-splat
- Replace NODE_ENV checks with proper isSubdomain checks (rdata, rnetwork)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| folk-map-viewer.ts | ||
| map-chat-panel.ts | ||
| map-import-modal.ts | ||
| map-import.ts | ||
| map-indoor-view.ts | ||
| map-meeting-modal.ts | ||
| map-privacy-panel.ts | ||
| map-privacy.ts | ||
| map-push.ts | ||
| map-room-history.ts | ||
| map-share-modal.ts | ||
| map-sync.ts | ||
| maps.css | ||