XF 2.0 random URL issue in Mails alerts

kankan

Well-known member
Hello
I am facing a strang issue with mail alert and "See this discussion" link :

Sometime the button URL link is not correct.
URL add a "." after the domain :
so there is a double .. and link not working.

197591

My MAIL CONTAINER is the following :

Code:
<!DOCTYPE html>
<html lang="{$xf.language.language_code}" dir="{$xf.language.text_direction}">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <base href="{$xf.options.boardUrl}/">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="format-detection" content="telephone=no">
    <title>{$subject}</title>
</head>
<body dir="{$xf.language.text_direction}" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table id="bodyTable" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="center" valign="top" id="bodyTableContainer">
        <table border="0" width="630" cellpadding="0" cellspacing="0" class="container" dir="{$xf.language.text_direction}">
        <tr>
            <td class="header" align="center" valign="top">
                <a href="https://www.forum-des-portables-asus.fr/forums/pages/premium/" target="blank"><img src="https://www.forum-des-portables-asus.fr/images/logomail.jpg" width="100%" alt="{$xf.options.boardTitle}"></a>
            </td>
        </tr>
        <tr>
            <td class="content" align="{{ $xf.isRtl ? 'right' : 'left' }}" valign="top">

{$html|raw}

            </td>
        </tr>
        <tr>
            <td class="footer" align="center" valign="top">
                <div>{{ phrase('visit_board_html', {'board_url': link('canonical:index'), 'board_title': $xf.options.boardTitle}) }}</div>

                <xf:if contentcheck="true">
                    <div class="footerExtra"><xf:contentcheck>{{ phrase('email_footer_html') }}</xf:contentcheck></div>
                </xf:if>
            </td>
        </tr>
        </table>
    </td>
</tr>
</table>

</body>
</html>

<mail:text>
{$text}

-----------------------------

{{ phrase('visit_board_text', {'board_title': $xf.options.boardTitle, 'board_url': link('canonical:index')}) }}

{{ phrase('email_footer_text') }}
</mail:text>

Seems the error occured after editing this template , but no sure and no error message in admin.
Any help to solve this error would be appreciated.
Thanks
 
Do links in other emails work?

If so that suggests the Board URL is correct.

Do the links in this email work if the template is reverted?
 
Some News :
I reversed email template : error still there

I checked Email HTML source and found that my mail (Gmail) is adding some mentions into HTML source to make the email printable.
Function is called "quoted-printable", which allows non-ASCII characters to be represented as ASCII for email transportation.
it adds 3D mention in code.

Gmail display both version in source : non printable and printable.

When i look for source in Gmail : i find two paragraphs :

Code:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Pierritos (https://www.forum-des-portables-asus.fr/forums/members/pierritos=
..28921/) a r=C3=A9pondu =C3=A0 la discussion que vous suivez sur Les Forum=
s et l'atelier Asus : support et r=C3=A9paration (https://www.forum-des-por=
tables-asus.fr/forums/).

****** En cours - Transfert des donn=C3=A9es du disque dur (https://www.for=
um-des-portables-asus.fr/forums/posts/156474/) ******

Bonjour @kankan (https://www.forum-des-portables-asus.fr/forums/members/1/)=
 !=20

Voici mon DD retir=C3=A9 :-)=20

Par contre, un pote m'a dit qu'il avait des connectiques SATA directement s=
ur sa tour et qu'il n'avait pas eu besoin de passer par l'adaptateur. Mais =
voici une photo de ma tour, et je ne vois pas de telle entr=C3=A9e...=20

merci de me confirmer que l'adaptateur est bien n=C3=A9cessaire

Bon dimanche

Voir cette discussion (https://www.forum-des-portables-asus.fr/forums/threa=
ds/transfert-des-donnees-du-disque-dur.18926/unread?new=3D1) - Discussions =
suivies (https://www.forum-des-portables-asus.fr/forums/watched/threads)

Veuillez ne pas r=C3=A9pondre =C3=A0 ce message. Vous devez visiter le foru=
m pour r=C3=A9pondre.

URL is OK.

And another paragraphe : Where "quotedprintable" email adds a "." :

Code:
<table cellpadding=3D"10" cellspacing=3D"0" border=3D"0" width=3D"100%" =
class=3D"linkBar" style=3D"border-spacing: 0; mso-table-lspace: 0pt; mso-ta=
ble-rspace: 0pt; border-collapse: collapse; padding: 10px; background-color=
: #f9fafa; border-top: 1px solid #e0e0e0;"><tr>
<td style=3D"border-collapse: collapse;">
=09=09=09<a href=3D"https://www.forum-des-portables-asus..fr/forums/threads=
/transfert-des-donnees-du-disque-dur.18926/unread?new=3D1" class=3D"button"=
 style=3D"color: #fff; text-decoration: none; padding: 0 15px; background-c=
olor: #ECEFF1; font-size: 14px; font-weight: 500; border-radius: 3px; paddi=
ng-top: 0; padding-right: 10px; padding-bottom: 0; padding-left: 10px; text=
-align: center; outline: none; line-height: 36px; height: 36px; display: in=
line-block; cursor: pointer; box-sizing: content-box; -webkit-appearance: n=
one; text-transform: uppercase; will-change: box-shadow; transition: all .3=
s cubic-bezier(.25, .8, .25, 1); background: #2196F3; box-shadow: 0 0 2px 0=
 rgba(0,0,0,0.14),0 2px 2px 0 rgba(0,0,0,0.12),0 1px 3px 0 rgba(0,0,0,0.2);=
 border: none;">Voir cette discussion</a>

See complete email attached.
 

Attachments

Top Bottom