Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Use url-join
Browse files Browse the repository at this point in the history
Use url-join.
  • Loading branch information
abuccts committed Sep 21, 2020
1 parent 0cf1c7a commit dcd2da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/webportal/src/app/job-submission/utils/conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { clearToken } from '../../user/user-logout/user-logout.component.js';
import config from '../../config/webportal.config';
import yaml from 'js-yaml';
import { get } from 'lodash';
import urljoin from 'url-join';

const token = cookies.get('token');

Expand Down Expand Up @@ -58,7 +59,10 @@ export async function listHivedSkuTypes(virtualCluster) {
}
return wrapper(async () =>
(await fetch(
`${config.restServerUri}/api/v2/cluster/sku-types?vc=${virtualCluster}`,
urljoin(
config.restServerUri,
`/api/v2/cluster/sku-types?vc=${virtualCluster}`,
),
{
headers: {
Authorization: `Bearer ${token}`,
Expand Down

0 comments on commit dcd2da6

Please sign in to comment.