Angular ngRoute suddenly converts URL into encoded characters #!/#%2F

故事扮演 提交于 2019-12-07 15:38:27
Jana

Gosh, I just found the answer... indirectly, it had to do with adding dependencies, because I changed the used angular version from 1.58 to 1.61 - I just read that the hash prefix changed to '!'.

The Link to the answering question is here: Angular Route - Extra # in URL

The folowing line in the route config makes the router work like before:

$locationProvider.hashPrefix('');

Thanks to Arjan Einbu for answering that question in the link. That saved my day.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!