LibreChat/client/src/utils/share.ts
NK 9b6e7cabc9
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
🔗 fix: Share Links Respect Custom Base Path (#11087)
* fix: share links respect base path

Fixes #11072

* chore: import order

* chore: import order

---------

Co-authored-by: Dustin Healy <54083382+dustinhealy@users.noreply.github.com>
2025-12-24 17:59:40 -05:00

6 lines
238 B
TypeScript

import { apiBaseUrl } from 'librechat-data-provider';
export const buildShareLinkUrl = (shareId: string): string => {
const baseURL = apiBaseUrl();
return new URL(`${baseURL}/share/${shareId}`, window.location.origin).toString();
};