Skip to content

Commit 82f4df1

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 5b4eb5d commit 82f4df1

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
if (result.invalid_workstation) {
130130
// route to WS admin page to delete the offending
@@ -133,7 +133,7 @@ function($routeProvider , $locationProvider) {
133133
'admin/workstation/workstations?remove='
134134
+ encodeURIComponent(args.workstation);
135135

136-
} else if ($location.search().route_to) {
136+
} else if ($location.search().route_to && $location.search().route_to !== '/eg/staff/') {
137137
// Route to the originally requested page.
138138
route_to = $location.search().route_to;
139139
}

0 commit comments

Comments
 (0)