简体   繁体   中英

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

I'm using angular 1.6, my page is breaking whenever the url params has '@' symbol in it. For example, www.stackoverflow.com?email=jon@gmail.com. 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM