New CTA not generating correct page target attribute in embed code

I am using the new CTAs for landing pages etc and noticed that if I set my button and uncheck “Open link in new tab”, the embed code generates target=“_blank” instead of target=“_self”.

As you would imagine, this is very frustrating. Can this be fixed?

Hey @TMagnuson! Thanks for posting this question.

I notice the same behavior in the new CTA tool with an embeddable CTA.

From this GitHub comment, the expected behavior is for target=“_blank” to be added if there aren’t any targets specified. That said, when loading the redirect on the same page, I would probably expect it to say target=“_self”.

I am going to check with the Product team and get back to you here, but maybe some of our experts have experienced this as well. Hey @karstenkoehler or @Jnix284 have either of you seen this or could you confirm if this is expected?

Best,
Kennedy

@TMagnuson -- I checked with the product team and as we concluded, this is not expected behavior. Your account has access to HubSpot Support, so I recommend opening a ticket for a more thorough investigation. The Support team can work with the product team to resolve this!