修改网页链接全局添加from=ghzs参数

This commit is contained in:
jack
2021-05-06 15:17:00 +08:00
parent 2d251ef453
commit 34ba85f099

View File

@ -447,7 +447,7 @@ public class WebFragment extends LazyFragment implements IScrollable {
private String dealWithUrl(String webUrl) {
if (webUrl != null && !webUrl.contains("from=ghzs")) {
Uri uri = Uri.parse(webUrl);
Uri uri = Uri.parse(webUrl.replace("#", ""));
Set<String> queryParameterNames = uri.getQueryParameterNames();
if (queryParameterNames.isEmpty()) {
webUrl = webUrl + "?from=ghzs";