From f91ced5273821dcd1c8e0d166e57699958a8207a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 27 Mar 2020 13:28:49 -0400 Subject: [PATCH] LPXXX AngJS accesskeys support /eg2/ URLs Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/services/navbar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/services/navbar.js b/Open-ILS/web/js/ui/default/staff/services/navbar.js index b6ff1d31fe..f6eeb5540c 100644 --- a/Open-ILS/web/js/ui/default/staff/services/navbar.js +++ b/Open-ILS/web/js/ui/default/staff/services/navbar.js @@ -18,6 +18,14 @@ angular.module('egCoreMod') } function navTo(path) { + + if (path.match(/^\/eg2\//)) { + // Hotkey for /eg2/ page. Go directly to the + // provided URL. + $window.location.href = path; + return; + } + path = path.replace(/^\.\//,''); $window.location.href = egCore.env.basePath + path; } -- 2.11.0