Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a 标签 href 的 query 中含有 :// 时被误判为外部链接 #356

Closed
yume-chan opened this issue Sep 26, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@yume-chan
Copy link

使用环境

原生微信小程序 基础库 2.19.2

问题描述

HTML 中含有类似 /pages/webview/index?url=https://www.baidu.com 这样的链接时,会被判断为外部链接进行复制,而不是跳转到 /pages/webview/index 页面。

#343 也有提到这个问题,可以通过 linktap,修改 webview 页面传参方式(escape)来绕过,但是解析时可以区分 URL 本身是外部链接还是 query 中含有外部链接。

复现方式

<a href="/pages/webview/index?url=https://www.baidu.com/">Baidu</a>
@jin-yufeng jin-yufeng added the bug Something isn't working label Sep 26, 2021
@shaobeichen
Copy link

一般来说webview里的https链接最好还是escape下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants