Home  >  Article  >  WeChat Applet  >  How to redirect external links from WeChat official account/mini program? Method introduction

How to redirect external links from WeChat official account/mini program? Method introduction

青灯夜游
青灯夜游forward
2021-12-14 10:24:2361691browse

How to jump to external links from WeChat public accounts/mini programs? The following article will introduce to you how to jump to external links from WeChat official accounts/mini programs. I hope it will be helpful to you!

How to redirect external links from WeChat official account/mini program? Method introduction

Let’s start with the links that public accounts can jump to. There are several categories for jumping from public accounts to

public accounts

This official account article jumps to other articles of this official account. Needless to say, WeChat official account backend already supports editing pictures and texts;

小program

Same as above, it is also directly supported ;

How to redirect external links from WeChat official account/mini program? Method introduction

"Service Account" Third-party link plan (external link)

Conditions for supporting external links

How to redirect external links from WeChat official account/mini program? Method introduction

You will see the action item on the public account editing page:

How to redirect external links from WeChat official account/mini program? Method introduction


"Subscription Account" Third-party link solution (external link)

Take GrowingIO official website, Zhihu, Weibo, and Douyin as examples for testing

  • Option 1: QR code jump External link

Method: Insert a prepared QR code into the official account article, the user views the article and long presses to identify the QR code;

Effect: GrowingIO official website, Zhihu, Weibo, you can directly open the link address; Douyin, you need to copy the address to the browser to open;

  • Option 2: "Read the original text" Jump to the external link

This option is just another form, with the same jump effect as option one;

  • Option three: "Web page" applet web -view (community plan)

Insert the "web page" applet in the official account. The applet is displayed using web-view, as follows:

Step 1: Search applet

How to redirect external links from WeChat official account/mini program? Method introduction

Step 2: Edit path

How to redirect external links from WeChat official account/mini program? Method introduction

##Test result:

    Zhihu, the official website can be opened, but it is slow, some pictures are blank, and some click interactions have no response;
  • TikTok, Weibo cannot be opened, and a white screen is displayed;
Pasting blocks outside of Docs is not supported

The above principle is to crawl the page of the corresponding website, and what is opened is actually the page of the middleman, not the real Zhihu or official website page. The experience is not good. And there are other prompts at the bottom of the page, sometimes with advertisements;

  • Option 4: Self-developed small program web-view
Just now, in the video We develop the personal network details h5 of our own "Growth Hacker" applet, open OK, then, is it feasible to develop and embed Zhihu h5 in our "Growth Hacker" applet?

If it is webview, the url domain name must be in the business domain name list. The following configuration requires the corresponding verification file to exist under the accessed domain name. Therefore, directly using web-view to host external links does not work. ;

For specific documents, see: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/domain.html

How to redirect external links from WeChat official account/mini program? Method introduction

 Comparison of four plans for subscription account

Plan

Operation steps

Official website

Zhihu

微博

抖音

QR code jumps to the external link

Long press-> Click to identify the QR code-> (Douyin copy the link to the browser)

yes

yes

yes

WeChat interception, copy to browser and open

"Read original text" Jump to external link

Click "Read the original text" -> (TikTok copy link to browser)

yes

yes

yes

WeChat interception, copy to Open the browser

"Webpage" applet webview

Click on the link text or picture

Can open, the experience is poor

Can be opened, the experience is poor

no, white screen

no, white screen

"Growth Hacker" applet webview

Click on the link text or picture

yes

No

Unable to configure webview business domain name

no

Unable to configure webview business domain name

no

Unable to configure webview business domain name

To sum up, the best way is to authenticate and activate the payment with the service account, directly use the WeChat backend to insert the external link, use the QR code for the subscription account or read the original text to jump to the external link, mini program The webview method has many limitations and disadvantages;

Q & A

How to upgrade the subscription account to a service account?

https://developers.weixin.qq.com/community/develop/doc/00042aee714f40ff05ea3e31256800?jumpto=comment&commentid=000cc8a91585a82f0dea9b09e518

trembling It's troublesome to copy the link. Can you jump directly?

Micro-twitching: Micro-twitching-Official website

http://dou.weitaodou.com/Admin/Index/index.html

In this The service provider's website converts the Douyin link, and then uses the converted link in the public account article. Essentially, what jumps is the Douyin content page crawled by the service provider;

Can you click on Jo Malone’s official account to jump directly to the Weibo app?

This should come with the service account. If not, you can also solve it by configuring the following link, or use this link to generate a QR code:

https: //mp.weixinbridge.com/mp/wapredirect?url=https://weibo.com/p/1006065653168468/home?from=page\_100606&mod=TAB&is\_all=1

【Related Learning recommendation: 小program development tutorial

The above is the detailed content of How to redirect external links from WeChat official account/mini program? Method introduction. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.cn. If there is any infringement, please contact admin@php.cn delete