Skip to content

Commit 3b261df

Browse files
Using 'url' to get the base URI for a resource
'baseUrl' was returning the empty string, leading to a url for the resource matching the domain. This was causing an error in the JSON-LD serialization.
1 parent bea75cd commit 3b261df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function uriAbs (req) {
5151
}
5252

5353
function uriBase (req) {
54-
return uriAbs(req) + (req.baseUrl || '')
54+
return uriAbs(req) + (req.url || '')
5555
}
5656

5757
function pathBasename (fullpath) {

0 commit comments

Comments
 (0)