Skip to content

Commit 632b6f0

Browse files
committed
fix // url issue
Issue: AAH-2172
1 parent 9db6e08 commit 632b6f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/paths.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export function formatPath(path: Paths, data = {}, params?: ParamType) {
99
? UI_BASE_PATH.replace('/beta/', '/').replace(/\/$/, '')
1010
: '';
1111
url += (path as string) + '/';
12+
url = url.replaceAll('//', '/');
1213

1314
for (const k of Object.keys(data)) {
1415
url = url.replace(':' + k, encodeURIComponent(data[k]));

0 commit comments

Comments
 (0)