fix: keep the link as it is. fix the issue with &

This commit is contained in:
Hiddify
2023-09-15 16:47:18 +02:00
parent 44b39bc87e
commit 2fe2ef98ed

View File

@@ -16,12 +16,12 @@ abstract class LinkParser {
final uri = Uri.parse(link.trim());
final params = uri.queryParameters;
return (
url: uri
.replace(queryParameters: {})
.toString()
.removeSuffix('?')
.split('&')
.first,
url: uri.toString(),
// .replace(queryParameters: {})
// .toString()
// .removeSuffix('?')
// .split('&')
// .first,
name: params['name'] ?? '',
);
}