Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template compiling error @TrackLink with another URL on same line #2364

Closed
iso opened this issue Mar 24, 2025 · 1 comment
Closed

Template compiling error @TrackLink with another URL on same line #2364

iso opened this issue Mar 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@iso
Copy link

iso commented Mar 24, 2025

Version:

  • listmonk: [eg: v4.1.0]
  • OS: [e.g. Debian]

Description of the bug and steps to reproduce:

  1. create a new campaign with the following HTML content:
    test http://example.net here<a href="https://example.net/@TrackLink">Testing</a>

  2. click preview

  3. Error message: "error compiling template: error compiling message: template: content:1: unexpected "https" in operand"

This happens when

  • there is another "http://" or "https://" on the same line anywhere before the anchor with the "@Tracklink" shorthand and
  • the href of this anchor is using double quotes.

Workarounds therefore seem to be either adding a newline or using single quotes.

@iso iso added the bug Something isn't working label Mar 24, 2025
@knadh
Copy link
Owner

knadh commented Mar 25, 2025

Hi @iso. A fix for this is in the works here: #2355

@knadh knadh closed this as completed Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants