diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index 6e9e190f..0734815d 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -500,6 +500,7 @@ class PiliScheme { // www.bilibili.com // space.bilibili.com // live.bilibili.com + // search.bilibili.com // redirect if (host.contains('b23.tv')) { @@ -544,6 +545,20 @@ class PiliScheme { return false; } + if (host.contains('search.bilibili.com')) { + String? keyword = uri.queryParameters['keyword']; + if (keyword != null) { + PageUtils.toDupNamed( + '/searchResult', + parameters: {'keyword': keyword}, + off: off, + ); + return true; + } + launchURL(); + return false; + } + List pathSegments = uri.pathSegments; if (pathSegments.isEmpty) { launchURL();