Links inside the page do not open or work

Asked

Viewed 66 times

0

Guys, I went up a page on the client’s website, the page is ok, but the links don’t work, when I click, I’ve changed the htaccess of the site, I even put a link on the site that goes straight to the google site, but still doesn’t work.

This is the site http://biliato.com.br/informacoes/mapa-do-site

Someone can give me a light of what might be ?

  • Dude, it’s some Javascript code that’s causing this you must have done something wrong(It’s kind of right, but it’s not what you wanted) if you open the developer tools and go to Javascript Settings/Disable and then refresh the page you will see that all the links in the page come back to work normally, but why? I don’t know yet, but from a look at Javascript, I don’t know, you may have used a preventDefault() in the link, I don’t know, but from a look at Javascript.

  • It’s really expensive, I did it by developer tool and the links worked, I’ll take a look at my js

1 answer

1


The fault is this js code on your page:

$(function() {
  $('a').on('click', function() {
    return false;
  });
});
  • That’s right, man, thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.