Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Jan 27, 2025
1 parent 477ec92 commit 4e0892b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/GalleryDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const qrShareUrl = computed(() => {
const customUrl = configurationStore.configuration.qrshare.share_custom_qr_url
// get filename from processed/unprocessed path. Could be improved in future, when the backend delivers the actual filename
const getFileName = (filePath: string) => filePath.substring(filePath.lastIndexOf('\\') + 1)
const getFileName = (filepath: string) => filepath.split(/[\\/]/).pop()
return customUrl.replace('{filename}', getFileName(currentMediaitem.value.processed)).replace('{identifier}', selectedMediaitemId.value)
}
Expand Down

0 comments on commit 4e0892b

Please sign in to comment.