使用ADAL重定向时的Ui-Router 404

Joh*_* Mc 5 angularjs hottowel angular-ui-router adal

我目前正在尝试将Azure目录身份验证库(ADAL.JS)挂钩到UI-Router中.我已经连线,并且它重定向正确,但它总是在重定向之前丢掉404.重定向工作,然后被发送回我的应用程序,显示404.

我像这样修改了状态:

        {
            state: 'admin',
            config: {
                url: '/admin',
                templateUrl: 'app/admin/admin.html',
                controller: 'AdminController',
                controllerAs: 'vm',
                title: 'Admin',
                settings: {
                    nav: 2,
                    content: '<i class="fa fa-lock"></i> Admin'
                },
                requireADLogin: true
            }
Run Code Online (Sandbox Code Playgroud)

我已经使用了正常的Angular RouteProvider,并且没有抛出404.

我正在试图将其引入的应用程序由John Papas Yo Hot Towel发电机生成.

Ome*_*glu 3

这看起来像是 adal.js 中的错误。ui-router 正在使用状态更改。与路由更改处理程序相比,我发现设置状态更改的起始页面有一个区别。它应该是 :

_adal._saveItem(_adal.CONSTANTS.STORAGE.START_PAGE, $location.$$path);
Run Code Online (Sandbox Code Playgroud)

代替

_adal._saveItem(_adal.CONSTANTS.STORAGE.START_PAGE, nextRoute.url);
Run Code Online (Sandbox Code Playgroud)