getBaseUrlAndPath static method
Extracts the base URL and path from a full URL
@param url The full URL string @return The base URL and path without query parameters
Implementation
static String getBaseUrlAndPath(String? url) {
if (isNullOrEmpty(url)) return "";
final index = url!.indexOf('?');
if (index != -1) {
url = url.substring(0, index);
}
return url;
}