You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have noticed during our testing that when a url is passed through mixpanel javascript client, the target attribute with a value other than _blank is ignored. Therefore, no new tabs are opened, the linked page is opened in the original window.
Our very naive solution is to change this condition in mixpanel.js from
element.target === '_blank'
to
!(element.target.trim() === "")
to allow the target value to pass through. We are not aware of the reasons behind only allowing _blank.
Thanks.
The text was updated successfully, but these errors were encountered:
WebproJoeZ
changed the title
Target attribute other than _blank is igored.
Target attribute other than _blank is ignored.
Jan 22, 2024
We have noticed during our testing that when a url is passed through mixpanel javascript client, the target attribute with a value other than _blank is ignored. Therefore, no new tabs are opened, the linked page is opened in the original window.
Our very naive solution is to change this condition in mixpanel.js from
element.target === '_blank'
to
!(element.target.trim() === "")
to allow the target value to pass through. We are not aware of the reasons behind only allowing _blank.
Thanks.
The text was updated successfully, but these errors were encountered: