Skip to content

Commit 097f61c

Browse files
stephanielearyDyrcona
authored andcommitted
LP1983500 Update AngularJS login path for staff
Changes the AngularJS login routing to go directly to /eg2/staff/splash (unless some other route was requested) rather than attempting to use the old AngularJS base path first. Speeds up logging in and prevents a flash of blank white screen in between frameworks. Release-note: Redirect to Angular staff portal from AngularJS login Signed-off-by: Stephanie Leary <[email protected]> Signed-off-by: Jason Stephenson <[email protected]>
1 parent 7e83c5d commit 097f61c

File tree

1 file changed

+2
-2
lines changed
  • Open-ILS/web/js/ui/default/staff

1 file changed

+2
-2
lines changed

Open-ILS/web/js/ui/default/staff/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function($routeProvider , $locationProvider) {
124124
// confusing intermediate page loads, since
125125
// path(...) is a setter function. Build the URL by
126126
// hand instead from the configured base path.
127-
var route_to = egCore.env.basePath;
127+
route_to = '/eg2/staff/splash';
128128

129129
// First, check for MFA
130130
if (egCore.auth.provisional()) {
@@ -136,7 +136,7 @@ function($routeProvider , $locationProvider) {
136136
'admin/workstation/workstations?remove='
137137
+ encodeURIComponent(args.workstation);
138138

139-
} else if ($location.search().route_to) {
139+
} else if ($location.search().route_to && $location.search().route_to !== '/eg/staff/') {
140140
// Route to the originally requested page.
141141
route_to = $location.search().route_to;
142142
}

0 commit comments

Comments
 (0)