Example 1
Input
https://example.com/path/to/page?utm_source=test&x=1&x=2#section
Output
Split a URL into protocol, host, path, query, and hash.
Some tools run in your browser. Some may require server processing depending on the feature.
https://example.com/path/to/page?utm_source=test&x=1&x=2#section
/relative/path?query=1