Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: url escaping the openurlexternally function

Ilian Sapundshiev55fecc8c0926
diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.ts
index d96996e76..c9de55a74 100644
--- a/src/renderer/services/utils-io.ts
+++ b/src/renderer/services/utils-io.ts
@@ -896,7 +896,14 @@ export function sanitizeAttribution(html: string | undefined): string {
export function openURLExternally(url: string, skipConfirmation = false) {
if (skipConfirmation) {
openUrl(url);
- } else if (window.confirm(i18n.t('core:confirmOpenUrl', { url }))) {
+ } else if (
+ window.confirm(
+ i18n.t('core:confirmOpenUrl', {
+ url,
+ interpolation: { escapeValue: false },
+ }),
+ )
+ ) {
openUrl(url);
}
}