Desktop: "Copy Lotus Link" copies a localhost address; public Lotus links not recognised in-app #248

Closed
opened 2026-09-28 19:30:22 -04:00 by jared · 1 comment
Owner

Desktop app: "Copy Lotus Link" copies a local address

Lotus permalinks (#130) are built from getOriginBaseUrl(), i.e. window.location.origin. On the web that's https://chat.lotusguild.org. In the desktop app it's the app's local server (tauri-plugin-localhost), and the desktop config uses the hash router. So a link copied from the desktop app looks like http://localhost:…/#/home/!room… and works for nobody else.

Affected:

  • Copying: "Copy Lotus Link" on messages (Message.tsx), and the space link in the space menu (Space.tsx) and space tabs (SpaceTabs.tsx).
  • Recognising: the link recogniser (setLotusPermalinkBase in ClientNonUIFeatures.tsx → react-custom-html-parser) only knows the local address. So clicking a real https://chat.lotusguild.org/home/… link inside the desktop app opens the browser instead of the room in the app.

Fix:

  • In the desktop app, use config webAppUrl (added in cinny-desktop #23, https only) as the base for shared links, in the web app's path-routing format.
  • Recognise both the public base and the local one.
  • The web app is unchanged. Without webAppUrl, behaviour stays as today.
## Desktop app: "Copy Lotus Link" copies a local address Lotus permalinks (#130) are built from `getOriginBaseUrl()`, i.e. `window.location.origin`. On the web that's `https://chat.lotusguild.org`. In the **desktop app** it's the app's local server (tauri-plugin-localhost), and the desktop config uses the hash router. So a link copied from the desktop app looks like `http://localhost:…/#/home/!room…` and works for nobody else. **Affected:** - **Copying:** "Copy Lotus Link" on messages (`Message.tsx`), and the space link in the space menu (`Space.tsx`) and space tabs (`SpaceTabs.tsx`). - **Recognising:** the link recogniser (`setLotusPermalinkBase` in `ClientNonUIFeatures.tsx` → `react-custom-html-parser`) only knows the local address. So clicking a real `https://chat.lotusguild.org/home/…` link inside the desktop app opens the browser instead of the room in the app. **Fix:** - In the desktop app, use config `webAppUrl` (added in cinny-desktop #23, https only) as the base for shared links, in the web app's path-routing format. - Recognise both the public base and the local one. - The web app is unchanged. Without `webAppUrl`, behaviour stays as today.
jared added the bugpriority: mediumarea: desktop labels 2026-09-28 19:30:22 -04:00
Author
Owner

Fixed in #249 (merged c0c93213, live on chat.lotusguild.org since 23:55 UTC).

  • Copy Lotus Link (desktop): message and space links use webAppUrl, e.g. https://chat.lotusguild.org/home/!room…/$event…?viaServers=…, instead of the local http://localhost:44548/#/… address.
  • Public links in messages (desktop): they're recognised, render as room pills and open in-app.
  • Web app: unchanged.

The desktop app picks this up in the next nightly build.

Fixed in #249 (merged `c0c93213`, live on chat.lotusguild.org since 23:55 UTC). - **Copy Lotus Link (desktop):** message and space links use `webAppUrl`, e.g. `https://chat.lotusguild.org/home/!room…/$event…?viaServers=…`, instead of the local `http://localhost:44548/#/…` address. - **Public links in messages (desktop):** they're recognised, render as room pills and open in-app. - **Web app:** unchanged. The desktop app picks this up in the next nightly build.
jared closed this issue 2026-09-28 20:36:22 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#248