lsascha / registeraddress

newsletter registration extension to tt_address made in Extbase + Fluid for Typo3. with double-opt in, user editing and unsubscribing
GNU General Public License v2.0
7 stars 18 forks source link

Links not clickable in HTML mail #35

Closed Hativ closed 5 years ago

Hativ commented 6 years ago

The links in the templates

are not clickable (at least in Thunderbird).

I fixed this the dirty way (here for MailNewsletterUnsubscribe.html):

<a href="{f:uri.action(action: 'delete', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:format.htmlentitiesDecode()}">{f:uri.action(action: 'delete', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:format.htmlentitiesDecode()}</a>

But I think there is a better way with fluid and the fix should be included in the extension.

lsascha commented 6 years ago

Thanks. Its not really "dirty" But you could create the link-tag using its viewHelper {f:link.action()} instead of {f:uri.action()} which only generates the uri.

But you are right that this should be the default for the html templates.

zabinetta commented 5 years ago

Hi, I just changed this again in my local template, because the links in the html-Mail are not visible, if they don't have a Linktext. (TYPO3 8.7.23) This works for me: `

{f:translate(key:'mail.info.editLinkText')} {f:uri.action(action: 'edit', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:link.action(action: 'edit', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:format.htmlentitiesDecode()}

{f:translate(key:'mail.info.deleteLinkText')} {f:uri.action(action: 'delete', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:format.htmlentitiesDecode() -> f:link.action(action: 'delete', arguments: {hash: hash}, controller: 'Address', extensionName: 'registeraddress', pluginName: 'registerform', noCacheHash: 1, pageUid: settings.pagewithform, absolute: 1) -> f:format.htmlentitiesDecode()}

`