mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	HTML Source Bugfix #288
This commit is contained in:
		| @@ -41,9 +41,14 @@ class HTML extends AppSource { | ||||
|         } catch (err) { | ||||
|           // is relative | ||||
|         } | ||||
|         var currPathSegments = uri.path.split('/'); | ||||
|         var currPathSegments = uri.path | ||||
|             .split('/') | ||||
|             .where((element) => element.trim().isNotEmpty) | ||||
|             .toList(); | ||||
|         if (e.startsWith('/') || currPathSegments.isEmpty) { | ||||
|           return '${uri.origin}/$e'; | ||||
|         } else if (e.split('/').length == 1) { | ||||
|           return '${uri.origin}/${currPathSegments.join('/')}/$e'; | ||||
|         } else { | ||||
|           return '${uri.origin}/${currPathSegments.sublist(0, currPathSegments.length - 1).join('/')}/$e'; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user