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.
1 parent 3fd3bce commit 81d42cdCopy full SHA for 81d42cd
lib/header.js
@@ -41,12 +41,10 @@ function addLinks (res, fileMetadata) {
41
}
42
43
44
-function linksHandler (req, res, next) {
+async function linksHandler (req, res, next) {
45
const ldp = req.app.locals.ldp
46
- const root = !ldp.multiuser ? ldp.root : ldp.root + req.hostname + '/'
47
- let filename = utils.uriToFilename(req.url, root)
+ const { path: filename } = await ldp.resourceMapper.mapUrlToFile(req)
48
49
- filename = path.join(filename, req.path)
50
if (path.extname(filename) === ldp.suffixMeta) {
51
debug.metadata('Trying to access metadata file as regular file.')
52
0 commit comments