Skip to content

Commit b8c636c

Browse files
committed
removed trailing slash from __metadata.urlPath added to objects belonging to models of type page
1 parent 21a44d3 commit b8c636c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models-matcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function urlPathFromFilePath(filePath) {
170170
parts.push(pathObject.name);
171171
}
172172
const urlPath = parts.join('/').toLowerCase();
173-
return '/' + urlPath + (urlPath ? '/' : '');
173+
return '/' + urlPath;
174174
}
175175

176176
function mergeDataObjects(objects, objectFileKeyPath, source) {

0 commit comments

Comments
 (0)