From 8c54a9fddf2c30bc9a915c2d147f8cb60ea587a5 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 15 Jun 2017 17:18:16 -0400 Subject: [PATCH] lp1653998 webstaff redirect to login page on invalid/non-existent authtoken in all or most interfaces (hopefully) Signed-off-by: Jason Etheridge Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/staff/services/startup.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/services/startup.js b/Open-ILS/web/js/ui/default/staff/services/startup.js index 670248ceae..3219b1eb22 100644 --- a/Open-ILS/web/js/ui/default/staff/services/startup.js +++ b/Open-ILS/web/js/ui/default/staff/services/startup.js @@ -13,6 +13,12 @@ angular.module('egCoreMod') +.config(['$routeProvider','$locationProvider','$compileProvider', + function($routeProvider , $locationProvider , $compileProvider) { + $locationProvider.html5Mode(true); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); +}]) + .factory('egStartup', ['$q','$rootScope','$location','$window','egIDL','egAuth','egEnv', function($q, $rootScope, $location, $window, egIDL, egAuth, egEnv) { -- 2.43.2