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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -