How to set external links in Mini Program

Published: 2018-06-22

```html

Step 1: Add an external link to the Micro Page component

1, Log in to the Mini Program admin backend (https://panel.myhostadmin.net/)

 blob.png

2,Click “Micro Page Creation”, as shown below:

\blob.png 

3,Click the “Add Page” button to add a custom page, as shown below:

blob.png 

4,On this page, you can select a component with a link that you want to use (here, select Image Navigation), and set the link to “External URL”, as shown below:

blob.png 

5,At this point, an “Enter External URL” dialog box will pop up. Enter the external URL you want to link to here (Note: It must be HTTPS)

blob.png 

 

6,After setting the external URL, click the Save button on this page to save the Micro Page. At this point, the Micro Page URL setup is complete.

Step 2: Change the authorization method in the Mini Program admin backend (change to manual access), and download the code package

1,Change automatic authorization to manual access

 blob.png

2,After performing the above operation, the following dialog box will pop up. After filling in the information in the pop-up box completely, click Save.

blob.png 

3,After clicking Save, the interface will be displayed as shown below

blob.png 

4,On this interface, click the “Download Code Package” button to download the code package

blob.png 

At this point, Step 2 is complete.


Step 3: Set the business domain on the WeChat Official Accounts Platform

1,Log in to the WeChat Official Accounts Platform (https://mp.weixin.qq.com/)

blob.png 

2,After successful login, you will be redirected to the following interface:

blob.png 

3,In the interface shown above, find “Settings” in the left menu bar, click it, and then select the “Development Settings” item, as shown below:

blob.png 

4,Find the Business Domain section in the interface shown above. If the “Business Domain” section does not appear, then (A, click the “Third-party Services” item to check whether a third party has been authorized; if a third party has been authorized, cancel the authorization; B, check whether the current Mini Program is under an enterprise entity), click the “Add” button, and an identity verification QR code will pop up. After the administrator scans the code, the following dialog box will pop up:

blob.png 


5,Click to download the verification file, as shown below (Note: You need to fill in the domain first. The domain here should be consistent with the domain filled in the external link in the Mini Program admin backend):

blob.png 

6,Put the downloaded verification file in the domain root directory (i.e., the website root directory). For this step, you can click “Specific Instructions” in the image above. At this point, Step 3 is complete.

Step 4: Download “WeChat Developer Tools” to upload code and publish the version

1,Download and install “WeChat Developer Tools”, create a new project (this project is the code package downloaded earlier), and upload the code;

2,Go to the WeChat Official Accounts Platform again to publish the Mini Program version

 

 

 

Note:

1,This feature only supports enterprise entity Mini Programs;

2,The external URL must be https at the beginning;

3,The domain must have completed ICP filing and passed verification

 

 

 


```