Mautic Community Forums

{webview_url}

It works well… and I’d like to use it to share the url on social nets. But, {webview_url} is not resolving; in the links, it remains as “{webview_url}”.

Questions:

When does the assignment of a specific reference# for an e-mail occur, such as 568afcf89bf19?

Is that reference# available via the front-end (before sending)?

Any other work-around suggestions?



to illustrate better:

this works: < a href="{webview_url}"> View in Browser

this doesn’t work: http://www.somesite.com/link?url={webview_url}



Thanks,

It works well… and I’d like to use it to share the url on social nets. But, {webview_url} is not resolving; in the links, it remains as “{webview_url}”.
Questions:
When does the assignment of a specific reference# for an e-mail occur, such as 568afcf89bf19?
Is that reference# available via the front-end (before sending)?
Any other work-around suggestions?

to illustrate better:
this works: < a href="{webview_url}"> View in Browser
this doesn’t work: http://www.somesite.com/link?url={webview_url}

Thanks,

I tried to send your example and it works for me. Or maybe you say it doesn’t work because Mautic replaces all the links to the trackable links? Mautic does that to be able to track which lead clicked which link. As you say:

It doesn’t remain for me. It is replaced like this in a send email for me:

http://www.somesite.com/link?url=http://[censored]/email/view/568cce77b40a0

BTW, I’m testing pull requests for the new version and I noticed this one:

https://github.com/mautic/mautic/pull/1310

Maybe it will solve your problem. Feel free to test it again.

I did check #1310 – BuilderSubscriber.php seems it doesn’t have the validatelink function or $foundLinks[$url] = $currentTokens[$token]; line at all… I have version 1.2.3, and it seems this references v1.2.3 … what am I missing.

Not sure if this may be related to sendgrid though; I see that it’s replacing the webview_url with:
https://u1398782.ct.sendgrid.net/wf/click?upn=tfqr
It’s the same for all, when I click webview_url shows up as
“…?url={webview_url}” in the address bar…

have you used or know of any similar sendgrid issues?

Thanks,

To update this… version 1.2.4 resolved the issue. The actual issue was, the first {webview_url} link worked, any subsequent urls were not resolving successfully. My use case is share buttons, I’m using the url total of 4 times within the e-mail. Now they’re all functioning as they should. So, the next issue related to this is the tracking. Links work but track counters are not increasing. The links have tracking-id 's but no activity posting – is webview_url clicks tracked? I understand this was designed for viewing the e-mail in a browser, possibly does not track. So for sharing the content of an e-mail socially, may be a new parameter {share_url} could resolve to same link but be traceable.
Thanks.