We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prependBase
1 parent c1ed142 commit cbb0517Copy full SHA for cbb0517
CHANGELOG.md
@@ -4,6 +4,8 @@
4
5
### Fixed
6
- Exclude `@type` from added values in Merge Node Maps step 2.2.1.
7
+- Fixed `prependBase` to start path with a '/' for a zero length path
8
+ if there is an authority in base.
9
10
## 3.0.0 - 2020-03-10
11
lib/url.js
@@ -107,7 +107,7 @@ api.prependBase = (base, iri) => {
107
108
// append relative path to the end of the last directory from base
109
path = path.substr(0, path.lastIndexOf('/') + 1);
110
- if(path.length > 0 && path.substr(-1) !== '/') {
+ if((path.length > 0 || base.authority) && path.substr(-1) !== '/') {
111
path += '/';
112
}
113
path += rel.path;
0 commit comments