Home Forums Newsletter Plugin Support Links with shortcodes mangled in visual editor

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9620
    renolanguages
    Participant

    Hi Stefano, I just discovered that if I edit a message in the visual editor and place a Newsletter-managed link-shortcut into a link – e.g. {email_url} or {unsubscribe_url} or any other – that the WYSIWYG editor prepends (adds) the website and Newsletter page URI to it. So, for example, the corresponding code in HTML source ends up looking like this:

    <a href="http://www.example.com/newsletter/{mail_url}">linked text</a>

    Of course, that should be instead:

    <a href="{mail_url}">linked text</a>

    In other words, I suggest adding a warning in the documentation, preferably next to those editor boxes, that adding such link-shortcuts MUST be done manually or at least manually verified in the source code. I understand that that’s the WYSIWYG editor intervening in an attempt to be “helpful” so that’s why I think a clarifying text in the documentation is a more practical solution.

    #9623
    Stefano
    Keymaster

    Hi, the delivery engine takes care to remove the prefix once it starts to send. don’t worry, it should work.

    #9624
    renolanguages
    Participant

    Haha! So here I am, looking foolish and all nervous about my outgoing email having links to nowhere… Well, what can I say other than that this is another instance showing how wonderfully well your plugin is put together, Stefano. Yours is the plugin of the year, as far as I’m concerned.

    Grazie mille.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.