Skip to content

Commit 362f0b2

Browse files
authored
fix share url can be broken because of extra slash (#7779)
2 parents 0a36d75 + e937f1b commit 362f0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/widgets/shared_info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function SharedInfo() {
2424
const shareId = getShareId(note);
2525

2626
if (syncServerHost) {
27-
link = `${syncServerHost}/share/${shareId}`;
27+
link = new URL(`/share/${shareId}`, syncServerHost).href;
2828
} else {
2929
let host = location.host;
3030
if (host.endsWith("/")) {

0 commit comments

Comments
 (0)