Signed-off-by: Bill Erickson <berickxx@gmail.com>
// post-login URL
let url: string = this.auth.redirectUrl || '/staff/splash';
- // prevent sending the user back to the login page.
- if (url.startsWith('/staff/login')) { url = '/staff/splash'; }
+ // prevent sending the user back to the login page or looping
+ // back to the workstation removal page.
+ if (url.startsWith('/staff/login') ||
+ url.startsWith('/staff/admin/workstation/workstations/remove/')) {
+ url = '/staff/splash';
+ }
const workstation: string = this.args.workstation;