=_self以跳过角路由。然而,重定向不起作用,因为路由是由角处理的。在获得授权后,我从不在/profile上着陆(而是在默认的角度路由上)。因此,我尝试使用Passport.js 建议的自定义回调,希望将json数据传递到角,让角执行路由。wait for json data from the server and do the routing// I call this route from Angular
我在路由方面遇到了问题,当我使用页面上的<a href="/someurl">在页面之间路由时,一切都很好。但是如果我没有输入# like http://localhost/someurl,我会得到Cannot GET /task/2
我在angular $locationProvider.html5Mode(true);中使用HTML5模式,后端是用MVC4 C#构建的