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 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-09 13:38:57 -07:00
parent 0b5e8198d6
commit c73635dcd3
4 changed files with 9 additions and 9 deletions

View File

@ -131,7 +131,7 @@ export class FolkCampaignManager extends HTMLElement {
</div>
</div>
<div class="actions">
<a href="/${this.esc(this._space)}/rsocials/thread-editor" class="btn btn--outline">Open Thread Builder</a>
<a href="/rsocials/thread-editor" class="btn btn--outline">Open Thread Builder</a>
<button class="btn btn--primary" id="import-md-btn">Import from Markdown</button>
</div>
${phaseHTML}

View File

@ -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`;
}
}
});

View File

@ -274,7 +274,7 @@ export class FolkThreadBuilder extends HTMLElement {
</div>
<div class="preview ro-cards">${tweetCards}</div>
<div class="ro-actions">
<a href="/${this.esc(this._space)}/rsocials/thread-editor/${this.esc(t.id)}/edit" class="btn btn--primary">Edit Thread</a>
<a href="/rsocials/thread-editor/${this.esc(t.id)}/edit" class="btn btn--primary">Edit Thread</a>
<button class="btn btn--outline" id="ro-copy-thread">Copy Thread</button>
<button class="btn btn--outline" id="ro-copy-link">Copy Link</button>
<div class="export-dropdown">
@ -289,8 +289,8 @@ export class FolkThreadBuilder extends HTMLElement {
</div>
</div>
<div class="ro-cta">
<a href="/${this.esc(this._space)}/rsocials/thread-editor" class="btn btn--success">Create Your Own Thread</a>
<a href="/${this.esc(this._space)}/rsocials/threads" class="btn btn--outline">Browse All Threads</a>
<a href="/rsocials/thread-editor" class="btn btn--success">Create Your Own Thread</a>
<a href="/rsocials/threads" class="btn btn--outline">Browse All Threads</a>
</div>
</div>
<div class="toast" id="export-toast" hidden></div>

View File

@ -96,7 +96,7 @@ export class FolkThreadGallery extends HTMLElement {
const cardsHTML = threads.length === 0
? `<div class="empty">
<p>No threads yet. Create your first thread!</p>
<a href="/${this.esc(space)}/rsocials/thread-editor" class="btn btn--success">Create Thread</a>
<a href="/rsocials/thread-editor" class="btn btn--success">Create Thread</a>
</div>`
: `<div class="grid">
${threads.map(t => {
@ -106,7 +106,7 @@ export class FolkThreadGallery extends HTMLElement {
const imageTag = t.imageUrl
? `<div class="card__image"><img src="${this.esc(t.imageUrl)}" alt="" loading="lazy"></div>`
: '';
return `<a href="/${this.esc(space)}/rsocials/thread/${this.esc(t.id)}" class="card">
return `<a href="/rsocials/thread/${this.esc(t.id)}" class="card">
${imageTag}
<h3 class="card__title">${this.esc(t.title || 'Untitled Thread')}</h3>
<p class="card__preview">${preview}</p>
@ -164,7 +164,7 @@ export class FolkThreadGallery extends HTMLElement {
<div class="gallery">
<div class="header">
<h1>Threads</h1>
<a href="/${this.esc(space)}/rsocials/thread-editor" class="btn btn--primary">New Thread</a>
<a href="/rsocials/thread-editor" class="btn btn--primary">New Thread</a>
</div>
${cardsHTML}
</div>