mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
Added the rest of the URLS
This commit is contained in:
parent
8a7ecd7955
commit
ce6dd5e2ee
1 changed files with 16 additions and 9 deletions
|
@ -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'
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue