使用特殊查询过滤清单中的深度链接

Filter DeepLinks in manifest with a special Query

假设我有两个 links

1 - https://www.google.com/url?q=https://www.siteA.com/modA/4446

2 - https://www.google.com/url?q=https://www.siteB.com/modB/8988

清单中的以下代码在同时单击两者时触发应用程序

       <activity
            android:label="@string/title_activity_dl"
            android:name=".DLActivity"
            android:theme="@style/AppTheme"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="www.google.com"
                    android:scheme="https"
                    android:pathPrefix="/url"
                    />
            </intent-filter>
        </activity>

有没有办法过滤url之后的部分?q所以只有点击link1[=14才会触发应用=]

我试过了,但没成功

android:pathPrefix="/url?q=https://www.siteA.com/"

感谢任何帮助

我终于通过使用 sspPattern 实现了它

<data
    android:scheme="https"
    android:sspPattern="//www.google.com/url?q=https://www.siteA.com/modA/.*"
/>

这将触发以 https://www.google.com/url?q=https://www.siteA.com/modA/

开头的任何内容

例如:

https://www.google.com/url?q=https://www.siteA.com/modA/4446

https://www.google.com/url?q=https://www.siteA.com/modA/5555

https://www.google.com/url?q=https://www.siteA.com/modA/9999