angularjs - Empty href tag returns current url on remote server -


i left few href tags without values. after deploying application remote server, tags filled url corresponding app location on server.

so, if application lived @ http://www.foo.org/, href = "" gets replaced href = "http://www.foo.org/".

why?

empty assumes href="#"

try using

<a href="javascript:void(0);">click</a> 

or

<a href="" onclick="event.preventdefault();">click</a> 

Comments

Popular posts from this blog

javascript - Can Piwik report referrer in real time? -

asp.net - Google Drive Access: At least one client secrets (Installed or Web) should be set -

excel vba add hyperlink to shape in group -