JSON mailto URL包含空格

时间:2019-03-20 01:00:01

标签: html json

下面的URL中有一个空格,用于在电子邮件正文中创建mailto链接,该空格将不起作用。我尝试添加%20进行补偿;但是,这不起作用。关于纠正此URL的任何建议,以便用户可以按照电子邮件中的建议单击链接?谢谢!

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "span",
      "style": {
        "padding-right": "8px"
      },
      "txtContent": "@currentField.title"
    },
    {
      "elmType": "a",
      "attributes": {
        "iconName": "Mail",
        "class": "sp-field-quickActions",
        "href": {
          "operator": "+",
          "operands": [
            "mailto:",
            "@currentField.email",
            "?subject=Task status&body=Hello, how is your task coming along?.\r\n---\r\n",
            "@currentField.title",
            "\r\nClick this link for more info. https://somesite.sharepoint.com/Information Technology/Lists/Projects/AllItems.aspx?ID=",
            "[$ID]"
          ]
        }
      }
    }
  ]

}

0 个答案:

没有答案