Fix URL-encoding of download params hyperlink
This commit is contained in:
1 parent
3d38de74d7
commit
4bcee572f1
1 file changed
+3
-1
@@ -140,7 +140,9 @@ const component: ClosureComponent = (): Component => {
|
|||||||
m(
|
m(
|
||||||
"a.download-csv",
|
"a.download-csv",
|
||||||
{
|
{
|
||||||
href: `/api/devices/${device["DeviceID.ID"].value[0]}.csv`,
|
href: `/api/devices/${encodeURIComponent(
|
||||||
|
device["DeviceID.ID"].value[0]
|
||||||
|
)}.csv`,
|
||||||
download: "",
|
download: "",
|
||||||
style: "float: right;"
|
style: "float: right;"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user