mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
fix: shareUrl missing basePath
This commit is contained in:
parent
7bfbe26485
commit
e7336601a6
|
@ -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…
Reference in New Issue
Block a user