Skip to content
Snippets Groups Projects
Commit ab16992a authored by esikkala's avatar esikkala
Browse files

getByURI: replace placeholder globally in query

parent 146a148a
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ export const getByURI = ({
facetID: null
}))
}
q = q.replace('<ID>', `<${uri}>`)
q = q.replace(/<ID>/g, `<${uri}>`)
if (langTag) {
q = q.replace(/<LANG>/g, langTag)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment