fix some browser bug

This commit is contained in:
Face
2025-09-08 20:19:50 +03:00
parent 3b87ab39c9
commit ac261e7d18
6 changed files with 30 additions and 17 deletions

View File

@@ -48,6 +48,12 @@ static func resolve_url(base_url: String, relative_url: String) -> String:
else:
host = remainder.substr(0, first_slash)
var path = remainder.substr(first_slash + 1)
# Remove query parameters from the path for URL resolution
var query_start = path.find("?")
if query_start != -1:
path = path.substr(0, query_start)
if not path.is_empty():
current_path_parts = path.split("/")