Good time to all. In my project links without an address
<a href="#"><i class="icon-plus"></i></a>
do not work correctly. They redirects to the home page. I could not determine the cause.

  • one
    Try to write more detailed questions. To get an answer, explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. Give a sample code. - Grundy
  • What do you have in <base>? Current page or home? Link - dluhhbiu

2 answers 2

Is it possible to click on a link for some js hanging redirect? Try to disable js in the browser, reload the page and click on the link, if the redaction does not happen - it's in js. :)

    Check what is written in the header. And you can write something like this if the jQuery is connected:

     $('a').on('click', function(e) { if($(this).attr('href') === "#") { e.preventDefault(); } }); 

    Well, it's more like a crutch than a real solution.