Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Exclude non-http hrefs on the UI when adding `@TrackLink`. Closes #2859.

Kailash Nadh4e5e713be8ea
diff --git a/frontend/src/components/RichtextEditor.vue b/frontend/src/components/RichtextEditor.vue
index 081cc8d3..72faa112 100644
--- a/frontend/src/components/RichtextEditor.vue
+++ b/frontend/src/components/RichtextEditor.vue
@@ -220,7 +220,7 @@ export default {
onEditorURLConvert(url) {
let u = url;
- if (this.isTrackLink) {
+ if (this.isTrackLink && /^https?:\/\//i.test(u)) {
u = `${u}@TrackLink`;
}