From c73635dcd3f382ca21397d6a001ab52d4f618791 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 9 Mar 2026 13:38:57 -0700 Subject: [PATCH] fix(rsocials): remove redundant /demo space prefix from internal URLs Subdomain routing (demo.rspace.online) already prepends the space, so links should use /rsocials/... not /demo/rsocials/... Co-Authored-By: Claude Opus 4.6 --- modules/rsocials/components/folk-campaign-manager.ts | 2 +- modules/rsocials/components/folk-campaign-planner.ts | 4 ++-- modules/rsocials/components/folk-thread-builder.ts | 6 +++--- modules/rsocials/components/folk-thread-gallery.ts | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/rsocials/components/folk-campaign-manager.ts b/modules/rsocials/components/folk-campaign-manager.ts index e321baa..041b147 100644 --- a/modules/rsocials/components/folk-campaign-manager.ts +++ b/modules/rsocials/components/folk-campaign-manager.ts @@ -131,7 +131,7 @@ export class FolkCampaignManager extends HTMLElement {
- Open Thread Builder + Open Thread Builder
${phaseHTML} diff --git a/modules/rsocials/components/folk-campaign-planner.ts b/modules/rsocials/components/folk-campaign-planner.ts index 13dd22c..3812248 100644 --- a/modules/rsocials/components/folk-campaign-planner.ts +++ b/modules/rsocials/components/folk-campaign-planner.ts @@ -820,7 +820,7 @@ class FolkCampaignPlanner extends HTMLElement { } else if (action === 'open-thread') { const d = node.data as ThreadNodeData; if (d.threadId) { - window.location.href = `/${this.space}/rsocials/thread-editor/${d.threadId}/edit`; + window.location.href = `/rsocials/thread-editor/${d.threadId}/edit`; } } }); @@ -1457,7 +1457,7 @@ class FolkCampaignPlanner extends HTMLElement { if (node?.type === 'thread') { const d = node.data as ThreadNodeData; if (d.threadId) { - window.location.href = `/${this.space}/rsocials/thread-editor/${d.threadId}/edit`; + window.location.href = `/rsocials/thread-editor/${d.threadId}/edit`; } } }); diff --git a/modules/rsocials/components/folk-thread-builder.ts b/modules/rsocials/components/folk-thread-builder.ts index 441c80e..4e1ec03 100644 --- a/modules/rsocials/components/folk-thread-builder.ts +++ b/modules/rsocials/components/folk-thread-builder.ts @@ -274,7 +274,7 @@ export class FolkThreadBuilder extends HTMLElement {
${tweetCards}
- Edit Thread + Edit Thread
@@ -289,8 +289,8 @@ export class FolkThreadBuilder extends HTMLElement {
diff --git a/modules/rsocials/components/folk-thread-gallery.ts b/modules/rsocials/components/folk-thread-gallery.ts index a074066..9756d09 100644 --- a/modules/rsocials/components/folk-thread-gallery.ts +++ b/modules/rsocials/components/folk-thread-gallery.ts @@ -96,7 +96,7 @@ export class FolkThreadGallery extends HTMLElement { const cardsHTML = threads.length === 0 ? `

No threads yet. Create your first thread!

- Create Thread + Create Thread
` : `
${threads.map(t => { @@ -106,7 +106,7 @@ export class FolkThreadGallery extends HTMLElement { const imageTag = t.imageUrl ? `
` : ''; - return ` + return ` ${imageTag}

${this.esc(t.title || 'Untitled Thread')}

${preview}

@@ -164,7 +164,7 @@ export class FolkThreadGallery extends HTMLElement {