This commit is contained in:
Timothy Jaeryang Baek
2025-04-11 15:27:25 -07:00
parent c846a550fa
commit c5636ff68c
5 changed files with 49 additions and 13 deletions
@@ -45,6 +45,14 @@
);
}
}
const decodeString = (str: string) => {
try {
return decodeURIComponent(str);
} catch (e) {
return str;
}
};
</script>
<Modal size="lg" bind:show>
@@ -99,7 +107,7 @@
: `#`}
target="_blank"
>
{decodeURIComponent(document?.metadata?.name ?? document.source.name)}
{decodeString(document?.metadata?.name ?? document.source.name)}
</a>
{#if document?.metadata?.page}
<span class="text-xs text-gray-500 dark:text-gray-400">