Streaming live at 10am (PST)

Webflow Links open in same tab despite "New Tab" being selected

These are the settings for the link Block:

it’s the links in the footer

Resolved

@ConfusedMan34 can you point out which link you are referring to?

Ahh yes @dennyhartanto it’s the links in the footer to social media “Instagram,Facebook etc”

Hi. Try to Clear cache maybe.

hey @Siton_Systems thanks for the response!

It happens from all devices i’ve tested not just mine, happens on phones also

Under the HTML the markup is fine (This is not some webflow bug):

image

The preventDefault() method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.

This issue is related to this code:

(function($){
    $(function(){
      $(document).on('click', 'a', function(e) {
        var $this = $(this),
        	href = this.href,
            delay = this.dataset.delay || 500;

        e.preventDefault();       
        setTimeout(function(){ window.location = href },delay);
      });
    });
1 Like

hey @Siton_Systems thanks for the response

The Z-Indexes they may look weird & confusing but they’re how they are to allow some pretty complicated interactions to work. I deleted all my Javascript to test & the error remained. But I will try investigating this thank you I will update you

This is js issue for 100%.

Change this:

      $(document).on('click', 'a', function(e) {
           e.preventDefault();       

To more specific trigger (For example):

      $(document).on('click', '#my-button', function(e) {
           e.preventDefault();       

Otherwise, you override the entire links of your site. Very weird idea.

1 Like

Hey thank you not sure why I had this code in but I deleted it I appreciate it

1 Like

Mark as a solution to close this topic. Thanks

1 Like

Got it I appreciate it thanks alot!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.