Node.js based forum software built for the modern web
Remove unmatched placeholders from intent URLs after template replacement
Julian Lam0c62afe81865
diff --git a/public/src/modules/intents.js b/public/src/modules/intents.jsindex ce0c930799..c0da1c655e 100644--- a/public/src/modules/intents.js+++ b/public/src/modules/intents.js@@ -215,6 +215,9 @@ export function trigger(intent, parameters) {});}+ // Remove any unmatched placeholders+ url = url?.replaceAll(/\{[^}]+\}/g, '');+if (url) {window.location.href = url;}