🔗 fix: Share Links Respect Custom Base Path (#11087)
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 base path

Fixes #11072

* chore: import order

* chore: import order

---------

Co-authored-by: Dustin Healy <54083382+dustinhealy@users.noreply.github.com>
This commit is contained in:
NK 2025-12-25 04:29:40 +05:30 committed by GitHub
parent 5740ca59d8
commit 9b6e7cabc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 7 deletions

View file

@ -0,0 +1,6 @@
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();
};