Skip to content

Commit

Permalink
url parsing fix for BI api
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerccarson committed Jan 24, 2025
1 parent bbba044 commit 26f7f12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keeperapi/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const formatTimeDiff = (timeDiff: Date): string => {
}

export function getKeeperUrl(host: KeeperHost, forPath: string) {
return `https://${host}/api/rest/${forPath}`;
const basePath = forPath.startsWith('bi_api') ? '' : 'api/rest/';
return `https://${host}/${basePath}${forPath}`;
}

export function getKeeperSAMLUrl(host: KeeperHost, forPath: string, serviceProviderId?: number) {
Expand Down

0 comments on commit 26f7f12

Please sign in to comment.