{conf_url} in a button

  • Stéphan
  • Stéphan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #1 by Stéphan
{conf_url} in a button was created by Stéphan
Hi there :)
I would like to make a nice Confirmation button in the notification sent after subscription.
For this, I'm using this tool to make my button : https://buttons.cm
I have used it severals time when I was still with your competitor Ac…. ;)
Weirdely, it is not working. Here's the case...

I'm using this code for the button :
Code:
<div><!--[if mso]>   <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{conf_url}" style="height:40px;v-text-anchor:middle;width:200px;" arcsize="10%" stroke="f" fillcolor="#595959">     <w:anchorlock/>     <center>   <![endif]-->       <a href="{conf_url}" style="background-color:#595959;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Cliquez ici !</a>   <!--[if mso]>     </center>   </v:roundrect> <![endif]--></div>

As you can see, I have put the "{conf_url}" in the href tag.
The URL in the Email (in this button) is :
https://myserver.local/index.php?option=com_nspro&task=n.c&l=5&e=bd68b5111a804d318451a155afbcece9
This link does not work and go to a 404.

If I put the same tag ("{conf_url}" just in <p> tag, In the same Email, I get this URL :
https://myserver.local/index.php?option=com_nspro&task=confirm&u=bd68b5111a804d318451a155afbcece9&s=component&si=2858
This link work well.

Weird, isn't ?
Any advice ?

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 2 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic {conf_url} in a button
Hello Stéphan and thank you for posting.

The first URL you mentioned is the link click tracking URL.
The second URL is just the confirmation URL that hasn't been recognized as a link, because you use it as plain text.

Are you using this tag ({conf_url}) in a newsletter set as the Confirmation Subscription email?
Are you testing it through the toolkit, or by subscribing?
Did you test it the same way and got these two different results only by placing the link out of the <a> element?

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Stéphan
  • Stéphan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #3 by Stéphan
Replied by Stéphan on topic {conf_url} in a button
Hi Christofer, thank you so much for your feedback :)
That's the point.
To get this two differents URL, i use the same tag !
In the button I put :
Code:
ref="{conf_url}"
And I also put the simple Tag 
Code:
{conf_url}
In the body to see what I get actually.
So in the button the URL is :
Code:
https://myserver.local/index.php?option=com_nspro&task=n.c&l=5&e=bd68b5111a804d318451a155afbcece9
And with the same tag, but simply put brut in a <p> tag in the body, I get :
Code:
https://myserver.local/index.php?option=com_nspro&task=confirm&u=bd68b5111a804d318451a155afbcece9&s=component&si=2858
​​​​​​​
That's the same tag in both... I tried it with toolkit and via the susbcription window.
I can't give you a URL to see that, as I'm still on my MAMP host (it is a project).
but here's the mail body (just the code concerned) :
Code:
<p style="font-family: Arial,sans-serif; margin: 0 0 12px 0; font-size: 12px; line-height: normal; color: #a19991; margin-top: 0;">Cliquez simplement ici :</p> <div><!--[if mso]>                                                                   <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://madeinv5.local/index.php?option=com_nspro&task=n.c&l=5&e=561da5740dfcb4da3705a9a0f0a45670" style="height:40px;v-text-anchor:middle;width:200px;" arcsize="10%" stroke="f" fillcolor="#595959">                                                                     <w:anchorlock/>                                                                     <center>                                                                   <![endif]--> <a href="https://madeinv5.local/index.php?option=com_nspro&task=n.c&l=5&e=561da5740dfcb4da3705a9a0f0a45670" style="background-color:#595959;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Cliquez ici !</a> <!--[if mso]>                                                                     </center>                                                                   </v:roundrect>                                                                 <![endif]--></div> <p>Ou cliquez ici :<br /> https://madeinv5.local/index.php?option=com_nspro&task=confirm&u=561da5740dfcb4da3705a9a0f0a45670&s=component&si=2858</p>
​​​​​​​
And here's what I put in the email (same concerned code) :
Code:
<p style="font-family: Arial,sans-serif; margin: 0 0 12px 0; font-size: 12px; line-height: normal; color: #a19991; margin-top: 0;">Cliquez simplement ici :</p> <div><!--[if mso]>                                                                   <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{conf_url}" style="height:40px;v-text-anchor:middle;width:200px;" arcsize="10%" stroke="f" fillcolor="#595959">                                                                     <w:anchorlock/>                                                                     <center>                                                                   <![endif]--> <a href="{conf_url}" style="background-color: #595959; border-radius: 4px; color: #ffffff; display: inline-block; font-family: sans-serif; font-size: 13px; font-weight: bold; line-height: 40px; text-align: center; text-decoration: none; width: 200px; -webkit-text-size-adjust: none;">Cliquez ici !</a> <!--[if mso]>                                                                     </center>                                                                   </v:roundrect>                                                                 <![endif]--></div> <p>Ou cliquez ici :<br /> {conf_url}</p>

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 2 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic {conf_url} in a button
Thank you.
Can you paste the URL of the page that produces the 404 error?
Not the initial link, the one it is redirected to afterwards.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Stéphan
  • Stéphan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #5 by Stéphan
Replied by Stéphan on topic {conf_url} in a button
Actually, it is the one in the button :
https://madeinv5.local/index.php?option=com_nspro&task=n.c&l=5&e=561da5740dfcb4da3705a9a0f0a45670

The one brut in the <p> tag (https://madeinv5.local/index.php?option=com_nspro&task=confirm&u=561da5740dfcb4da3705a9a0f0a45670&s=component&si=2858) works well.

What I don't iunderstand, is the fact that the same tag {conf_url} give 2 differents URL - Maybe because of the HTML around ?

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 2 months ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic {conf_url} in a button
URLs in links are parsed from an additional filter that changes them to the link click tracking URL you see.
If you disable link tracking in the options, it will work immediately.

What I'm trying to understand here, is what's causing the problem.
I have three theories. Before I put them down, can you do me a favor and test it once again, having {conf_url} in both the button and the <p> element, but please follow these exact steps.
1. Make sure this newsletter is scheduled as "Subscription Confirmation".
2. Go to your front-end subscription module.
3. Write a different email address than the one you've been testing with so far.
4. Test if you have the same problem with the button.
5. If yes, paste both new URLs here.

Thanks again.
 

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros