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
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:
The link format used to redirect to a mini program is as follows:
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.