Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
postprocess_content: Un-URI-escape filename in title.
Alex Vandiverb8e4bdccd896
diff --git a/web/src/postprocess_content.ts b/web/src/postprocess_content.tsindex 814ddaa8286..75491ec11bd 100644--- a/web/src/postprocess_content.ts+++ b/web/src/postprocess_content.ts@@ -75,7 +75,11 @@ export function postprocess_content(html: string): string {// not display the URL like it does in the web app.title = legacy_title = $t({defaultMessage: "Download {filename}"},- {filename: url.pathname.slice(url.pathname.lastIndexOf("/") + 1)},+ {+ filename: decodeURIComponent(+ url.pathname.slice(url.pathname.lastIndexOf("/") + 1),+ ),+ },);} else {title = url.toString();