Skip to content

Commit

Permalink
Fix joining baseURL with paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Oct 28, 2021
1 parent 364680e commit fece177
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const joinBase = (path, base) => {
}

try {
return new URL(path, base);
return new URL(path, base).href;
} catch {
return path;
}
Expand Down
File renamed without changes.

0 comments on commit fece177

Please sign in to comment.