Skip to main content
This topic describes how message links are opened. When a user clicks a URL in a message on the PC client, use the following format to control how the link opens:

Parameters

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:
Example: eapp://pages/index/index?param1=aa&param2=bb

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.
  • page indicates the page path of the mini program, such as pages/index/index. The path must be defined under pages in the app.json configuration file.

Notes

To ensure the redirection works as expected, publish the target mini program to the production environment.
  • query indicates the query parameters passed to the onLoad method of the page. For example, param1=aa&param2=bb. If a parameter value contains special characters, URL-encode the value.