Cannot use <a> tag for Double Opt-in now, last week woking find. How to solve it?

Hi everybody,
Last week my campaign working fine, I have a button (HTML button with < a > tag) and when click on that, open url to confirm. But now, It not woking
Last html code:
<a style="background: url(&quot;https://lapa.vn/images/why-flash.png&quot;) left 15px center / 20px no-repeat, linear-gradient(rgb(63, 195, 128), rgb(4, 147, 114)); padding: 20px 15px 20px 40px; border-radius: 5px; color: rgb(255, 255, 255); font-weight: 600; font-size: 18px; margin-bottom: 20px; text-decoration: none;" href="https://am517.infusionsoft.com/app/optIn/10/21ce3ca54f7a5b86/~EmailSent.Id~/~EmailSent.PartialHash~">CLICK ĐỂ NHẬN MÃ KÍCH HOẠT</a>
Now when click on the button in Email ~EmailSent.Id~/~EmailSent.PartialHash~ not convert to right string, so 404 Error
(Like this:https://am517.infusionsoft.com/app/optIn/10/21ce3ca54f7a5b86/~EmailSent.Id~/~EmailSent.PartialHash~)
I try:

  1. Remove format, only pure < a > tag with href but still error
  2. Put https://am517.infusionsoft.com/app/optIn/10/21ce3ca54f7a5b86/~EmailSent.Id~/~EmailSent.PartialHash~ at Email content then it woking

Thanks for your help

Hello, Is that new update of Infusionsoft? Now, we cannot use HTML Button Confirm OptIn…Is that right?

I have run into the same issue. But it looks like now the button block allows you to use the OptIn and OptOut merge code.

I now have confirmation buttons without hacks!

Hopefully it stays supported.

And it’s broken again. Optin merge codes in buttons are not working anymore.

But now you can add this as the URL in the button:
https://XXX.infusionsoft.com/app/optIn/133/a27157e475057f02/~EmailSent.Id~/~EmailSent.PartialHash~

The first part of the link should come from your real confirmation link. Add the merge code to the email, send a test, copy the link, replace the last two / with /~EmailSent.Id~/~EmailSent.PartialHash~.

In case they break that again, here’s the previous method of HTML code widget with this code:

<div style="padding: 15px;">
 <table border="0" cellspacing="0" cellpadding="0" class="button-container"
  style="border-radius: 4px; border: none; margin-left: auto; margin-right: auto;">
  <tbody>
   <tr style="padding: 16px;">
    <td align="center" valign="middle" bgcolor="#E49042"
     style="background: rgb(228, 144, 66); border-radius: 4px; color: rgb(255, 255, 255); cursor: auto; font-size: 16px; min-width: 258px;">
     <a href="https://XXX.infusionsoft.com/app/optIn/133/a27157e475057f02/~EmailSent.Id~/~EmailSent.PartialHash~"
      target="_blank"
      style="background: rgb(228, 144, 66); border-radius: 4px; color: rgb(255, 255, 255); font-family: Helvetica, Arial, sans-serif; font-weight: bold; text-decoration: none; padding: 16px; text-size-adjust: none; width: auto; display: block; line-height: 1.5;">
      Show Me My Subscriber-Only Premium Content
     </a>
    </td>
   </tr>
  </tbody>
 </table>
</div>

Same deal as before, you have to replace the first part of the href=.