|
|
@ -2,19 +2,26 @@ export function getBaseLocation() {
|
|
|
|
debugger;
|
|
|
|
debugger;
|
|
|
|
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
|
|
|
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
|
|
|
let basePath: string = (paths && paths[0] ? paths[0] : "");
|
|
|
|
let basePath: string = (paths && paths[0] ? paths[0] : "");
|
|
|
|
if(invalidProxies.indexOf(basePath) === -1){
|
|
|
|
if(invalidProxies.indexOf(basePath.toUpperCase()) === -1){
|
|
|
|
return '/';
|
|
|
|
return '/';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return '/' + basePath;
|
|
|
|
return '/' + basePath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const invalidProxies: string[] = [
|
|
|
|
const invalidProxies: string[] = [
|
|
|
|
'discover',
|
|
|
|
'DISCOVER',
|
|
|
|
'requests-list',
|
|
|
|
'REQUESTS-LIST',
|
|
|
|
'Settings',
|
|
|
|
'SETTINGS',
|
|
|
|
'issues',
|
|
|
|
'ISSUES',
|
|
|
|
'usermanagement',
|
|
|
|
'USERMANAGEMENT',
|
|
|
|
'recentlyadded',
|
|
|
|
'RECENTLYADDED',
|
|
|
|
'details',
|
|
|
|
'DETAILS',
|
|
|
|
'vote'
|
|
|
|
'VOTE',
|
|
|
|
|
|
|
|
'LOGIN',
|
|
|
|
|
|
|
|
'LANDINGPAGE',
|
|
|
|
|
|
|
|
'TOKEN',
|
|
|
|
|
|
|
|
'RESET',
|
|
|
|
|
|
|
|
'CUSTOM',
|
|
|
|
|
|
|
|
'AUTH',
|
|
|
|
|
|
|
|
'WIZARD'
|
|
|
|
]
|
|
|
|
]
|