Widget: DataExporter: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 46: | Line 46: | ||
|| field.getAttribute('name'); | || field.getAttribute('name'); | ||
const label = field.querySelector('Label')?.textContent; | const label = field.querySelector('Label')?.textContent; | ||
exportUrl += encodeURIComponent(' | exportUrl += '/' + encodeURIComponent('?' + prop).replaceAll('%', '-'); | ||
if (!!label) exportUrl += '%3D' + encodeURIComponent(label).replaceAll('%', '-'); | if (!!label) exportUrl += '%3D' + encodeURIComponent(label).replaceAll('%', '-'); | ||
} | } |