Column Formatting workaround for hyperlinks with icons not opening since update.
Old JSON as specified on PNP and MS sites
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "a",
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer",
"padding-left": "5px"
},
"attributes": {
"target": "_blank",
"href": "@currentField"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "FabricDocLibrary",
"class": "ms-font-xxl"
}
}
]
}
New JSON that is working
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"attributes": {
"iconName": "FabricDocLibrary",
"class": "ms-fontColor-themeDark",
"href": "=@currentField",
"target": "_blank"
},
"style": {
"font-size": "28px",
"text-decoration": "none",
"padding-left": "15px",
"font-weight": "normal",
"color": "blue"
}
}