Open a message link in the PC sidebar or an external browser
When a user clicks a URL in a message on the PC client, use the following format to control how the link opens:Parameters
| Parameter | Description |
|---|---|
| url | The link to open. The value must be URL-encoded. |
| pc_slide | - true: Open the link in the sidebar of the PC client. - false: Open the link in a browser. |
Mini program links
A mini program can send a message that, when clicked, redirects the user to the mini program. The supported scenarios are as follows:| App type | Work Notifications message | Organization group message | Plain message |
|---|---|---|---|
| Internal app | Supported | Not supported | Not supported |
| Third-party enterprise app | Supported | Not supported | Not supported |
| Third-party personal app | — | — | Supported |
Parameters
- This link format is supported only when the message is sent by a mini program. It is not supported when the message is sent by a micro app.
- To ensure the redirection works as expected, publish the target mini program to the production environment.
pageindicates the page path of the mini program, such aspages/index/index. The path must be defined underpagesin theapp.jsonconfiguration file.
Notes
To ensure the redirection works as expected, publish the target mini program to the production environment.queryindicates the query parameters passed to theonLoadmethod of the page. For example,param1=aa¶m2=bb. If a parameter value contains special characters, URL-encode the value.