Open raphael-m opened 8 months ago
I have a template containing the following element (some attributes and child nodes left out to keep it simple):
<pb-table-grid source="api/locality/${key}" ... data-template="pages:parse-params"> ... </pb-table-grid>
If I understand it correctly, ${key} should be replaced with the key request parameter defined in our custom-api.json. But it seems key in the model passed to pages:parse-params is always empty.
${key}
key
custom-api.json
pages:parse-params
I could narrow down the issue to be caused by this change: https://github.com/eeditiones/tei-publisher-app/commit/e76aa6df4dda8bad6c55b5d2295205800f832a92. If I uncomment the corresponding line, ${key} is populated correctly.
What was the reason for that change - is it save to uncomment the line again, or is there another solution?
I have a template containing the following element (some attributes and child nodes left out to keep it simple):
If I understand it correctly,
${key}
should be replaced with thekey
request parameter defined in ourcustom-api.json
. But it seemskey
in the model passed topages:parse-params
is always empty.I could narrow down the issue to be caused by this change: https://github.com/eeditiones/tei-publisher-app/commit/e76aa6df4dda8bad6c55b5d2295205800f832a92. If I uncomment the corresponding line,
${key}
is populated correctly.What was the reason for that change - is it save to uncomment the line again, or is there another solution?