Include query string when retrieving window path

Seems query string routing was only working in hash mode, this tiny fix makes sure `getWindowPathname` uses both `pathname` and `search` properties of the location object.