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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -