mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-19 22:26:33 +01:00
* 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>
6 lines
238 B
TypeScript
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();
|
|
};
|