mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
fix: shareUrl missing basePath
This commit is contained in:
parent
7bfbe26485
commit
e7336601a6
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export function ShareUrl({ websiteId, data, onSave }) {
|
|||
);
|
||||
const ref = useRef(null);
|
||||
const url = useMemo(
|
||||
() => `${process.env.analyticsUrl || location.origin}/share/${id}/${encodeURIComponent(name)}`,
|
||||
() => `${process.env.analyticsUrl || location.origin}${process.env.BASE_PATH || ''}/share/${id}/${encodeURIComponent(name)}`,
|
||||
[id, name],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue