So i've set an email link in the settings panel i.e. email@example.com and i've given it a custom attribute of
target="_blank" to make the link open in a new tab. It works perfectly.
However, if I change the email address in the settings panel but leave the custom attribute as it was, i.e.
target="_blank" and then republish the site - the link no longer opens in a new tab.
When I check the newly published html, the link no longer has the
target="_blank" attribute even though it still shows up in the settings panel.
So it seems webflow deletes this attribute for some reason when the email address in the settings panel is changed.
The fix is to delete the attribute and reset it again when one changes the email address.
Hope this makes sense
As an aside - there should be a "open in new tab" tick box for the email link option. I've already added this to the wishlist here - https://wishlist.webflow.com/ideas/WEBFLOW-I-257
Thanks for your time