I've got a SharePoint list with a Image and Hyperlink column. Now I'm trying to make the Image clickable with the Hyperlink column. I've came up with the setup below, but unfortunately I get about:blank#blocked when using clicking the Image.
I'v tried formatting the Hyperlink column to show the Image with a similar formatting and that works fine. Any idea's what's wrong with this setup?
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"attributes": {
"target": "_blank",
"href": "[$Link]"
},
"children": [
{
"elmType": "img",
"style": {
"display": "block",
"background-color": "none",
"position": "relative",
"width": "60px"
},
"attributes": {
"src": "@currentField.serverRelativeUrl"
}
}
]
}
