The source code is confusing because it uses the term "query string" to refer to the portion after the hostname and before the "?". This is commonly referred to as the "path". The "query string" is commonly everything that follows the "?". See https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax
The source code is confusing because it uses the term "query string" to refer to the portion after the hostname and before the "?". This is commonly referred to as the "path". The "query string" is commonly everything that follows the "?". See https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax