From 573e852cd47b2bc92678dc0deac5f28b3878c290 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Thu, 14 Sep 2023 15:10:27 +0200 Subject: [PATCH] add support for fragment in the url --- lib/domain/profiles/profile.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/domain/profiles/profile.dart b/lib/domain/profiles/profile.dart index 62768888..8371c211 100644 --- a/lib/domain/profiles/profile.dart +++ b/lib/domain/profiles/profile.dart @@ -52,7 +52,12 @@ class Profile with _$Profile { } } } - + if (title.isEmpty) { + final part = url.split("#").lastOrNull; + if (part != null) { + title = part; + } + } if (title.isEmpty) { final part = url.split("/").lastOrNull; if (part != null) {