🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(desktop): strip trailing slash from app origin in copied links (#20934)
Inneie1d55d679cbb
diff --git a/src/hooks/useAppOrigin.ts b/src/hooks/useAppOrigin.tsindex 30090fe7fb5..cbcc2dd6041 100644--- a/src/hooks/useAppOrigin.ts+++ b/src/hooks/useAppOrigin.ts@@ -8,9 +8,10 @@ import { electronSyncSelectors } from '@/store/electron/selectors';/*** Returns the correct app origin URL for sharing/linking.* - Web: uses window.location.origin- * - Desktop: uses remoteServerUrl from electron store+ * - Desktop: uses remoteServerUrl from electron store, without trailing slashes+ * (a self-hosted URL may be configured as `https://example.com/`)*/export const useAppOrigin = () => {const remoteServerUrl = useElectronStore(electronSyncSelectors.remoteServerUrl);- return isDesktop ? remoteServerUrl : window.location.origin;+ return isDesktop ? remoteServerUrl.replace(/\/+$/, '') : window.location.origin;};