My page is breaking when url params contains '@' symbol in it in angular 1.6

97 Views Asked by At

I'm using angular 1.6, my page is breaking whenever the url params has '@' symbol in it. For example, [email protected]. Not sure what is going on. It is encoding and working with all other symbols. I'm using ui-router, will that be any cause by chance?

1

There are 1 best solutions below

2
On

You need to urlencode the query string to avoid issues with special characters. Have a look at the answers to this question.