mirror of
https://github.com/zadam/trilium.git
synced 2025-11-21 08:04:24 +01:00
fix share url can be broken because of extra slash (#7779)
This commit is contained in:
commit
362f0b2fe5
@ -24,7 +24,7 @@ export default function SharedInfo() {
|
||||
const shareId = getShareId(note);
|
||||
|
||||
if (syncServerHost) {
|
||||
link = `${syncServerHost}/share/${shareId}`;
|
||||
link = new URL(`/share/${shareId}`, syncServerHost).href;
|
||||
} else {
|
||||
let host = location.host;
|
||||
if (host.endsWith("/")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user