diff --git a/modules/rsocials/components/folk-thread-builder.ts b/modules/rsocials/components/folk-thread-builder.ts index b8bc318..4aa9b55 100644 --- a/modules/rsocials/components/folk-thread-builder.ts +++ b/modules/rsocials/components/folk-thread-builder.ts @@ -80,6 +80,12 @@ export class FolkThreadBuilder extends HTMLElement { } private get basePath() { + // On subdomain routing (e.g. jeff.rspace.online), the space is the subdomain + // and paths should be /rsocials/... not /jeff/rsocials/... + const host = window.location.hostname; + if (host.endsWith('.rspace.online') || host.endsWith('.rsocials.online')) { + return '/rsocials/'; + } return `/${this._space}/rsocials/`; }