Keep repeated parameters and distinguish the fragment
Example input
https://example.com/search?q=red+blue&tag=a&tag=b#topExpected result
q = "red blue"
tag = "a", "b"
fragment = "#top"Parse the full URL. Form-style query decoding turns the plus into a space, while both tag values remain available. The fragment identifies a client-side location and is separate from the HTTP query. The output above summarizes those fields rather than replacing the URL with a new serialization.