首页 > 解决方案 > iOS 13 apple-app-site-association 通配符用于包含/排除而没有部分路径

问题描述

使用新的 iOS 13 apple-app-site-association,有没有办法包含所有 url,但排除特定的部分路径?

        "components": [
      {
        "/": "/*",
        "comment": "Matches any URL whose path starts with /"
      },
      {
        "/" : "/e/*",
        "exclude": true,
        "comment": "Exclude matches any URL whose path starts with /e/"
      },
      {
        "/": "/user/*",
        "exclude": true,
        "comment": "Exclude matches any URL whose path starts with /user/"
      }
    ]

我们不想指定我们的应用程序可以处理或包含的所有可能路径。
但我们确实想排除/user/*/e/*

尽管有指令/user/*,我们的上述设置仍然允许。我觉得太包容了。/e/*"exclude" : true"/": "/*"

我们现在是否被迫从根目录指定所有可能的路径以排除特定路径?

以前的格式更容易匹配"paths": ["NOT /e/*", "NOT /user/*", "*","/"]

我需要先声明排除命令吗?

标签: iosdeep-linkingapple-app-site-association

解决方案


推荐阅读