From ce6dd5e2ee46559b4a87897c05ae592d7455cca2 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Thu, 28 Mar 2019 11:28:13 +0000 Subject: [PATCH] Added the rest of the URLS --- .../app/shared/functions/common-functions.ts | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/shared/functions/common-functions.ts b/src/Ombi/ClientApp/src/app/shared/functions/common-functions.ts index 3d3b094ed..4e39f95ee 100644 --- a/src/Ombi/ClientApp/src/app/shared/functions/common-functions.ts +++ b/src/Ombi/ClientApp/src/app/shared/functions/common-functions.ts @@ -2,19 +2,26 @@ export function getBaseLocation() { debugger; let paths: string[] = location.pathname.split('/').splice(1, 1); let basePath: string = (paths && paths[0] ? paths[0] : ""); - if(invalidProxies.indexOf(basePath) === -1){ + if(invalidProxies.indexOf(basePath.toUpperCase()) === -1){ return '/'; } return '/' + basePath; } const invalidProxies: string[] = [ - 'discover', - 'requests-list', - 'Settings', - 'issues', - 'usermanagement', - 'recentlyadded', - 'details', - 'vote' + 'DISCOVER', + 'REQUESTS-LIST', + 'SETTINGS', + 'ISSUES', + 'USERMANAGEMENT', + 'RECENTLYADDED', + 'DETAILS', + 'VOTE', + 'LOGIN', + 'LANDINGPAGE', + 'TOKEN', + 'RESET', + 'CUSTOM', + 'AUTH', + 'WIZARD' ] \ No newline at end of file