We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eecf3f1 commit 4dfd2f6Copy full SHA for 4dfd2f6
src/client/views/pages/detail.ejs
@@ -545,8 +545,8 @@
545
// Update URLs
546
const updateUrls = (filename, isImage = false) => {
547
const baseUrl = window.location.origin;
548
- const fileUrl = `${baseUrl}/api/file/preview/${encodeURIComponent(filename)}`;
549
- const imageUrl = `${baseUrl}/api/image/${encodeURIComponent(filename)}`;
+ const fileUrl = `/api/file/preview/${encodeURIComponent(filename)}`;
+ const imageUrl = `/api/image/${encodeURIComponent(filename)}`;
550
551
document.getElementById('direct-url').value = fileUrl;
552
0 commit comments