Skip to content

Commit 3c5f17d

Browse files
committed
fix: update direct URL construction in detail.ejs to include base URL
1 parent 4dfd2f6 commit 3c5f17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/views/pages/detail.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
const fileUrl = `/api/file/preview/${encodeURIComponent(filename)}`;
549549
const imageUrl = `/api/image/${encodeURIComponent(filename)}`;
550550
551-
document.getElementById('direct-url').value = fileUrl;
551+
document.getElementById('direct-url').value = `${baseUrl}${fileUrl}`;
552552
553553
// HTML and Markdown embeds
554554
const htmlRow = document.getElementById('html-embed-row');

0 commit comments

Comments
 (0)