<a> link not working by clicking, only work by "Open link in new tab" command
Correctly given by Darren, it is definitely some javascript code that is sending an AJAX request (post or get) that is preventing the link from functioning as you would expect.
However, if you've used an external resource, it might be difficult to correct the error in the min
files.
I suggest use a jquery onclick event inline to circumvent the AJAX call
<a href="http://foo.bar/" onclick="window.open('https://www.foo.bar/culrsteam')">Foo</a>
You could additionally use window.open('https://www.foo.bar/culrsteam', '_blank')
like with target='_blank'
Maybe you prevented the redirection event of a tag with JavaScript.
For example:
$(document).on('click', 'a.thatTag', function (e) {
// ...
e.preventDefault();
});
.preventDefault()
prevents redirection.
You have some javascript code which is preventing the default action of the anchor tag to be executed. You could inspect the Network
tab in FireBug or Chrome DevTools to see if some AJAX request is being made when you click on the link. You could try excluding javascript files until you find the one that is doing this.
Try this code...
<a href="http://google.com/" onclick="location.replace('http://google.com/'),'_top'">Google</a>