visionmedia/page.js — pull request #22 by ovaillancourt (2012-07-05 02:06:04+00:00)
Title: Fix for page.js not matching routes containing query strings.

This fixes the issue where page.js wouldn't return successful matches when submitted paths that contained a query string.

This issue has the side effect of reloading the page in certain cases where the initial dispatch was set to true and no catch-all "error" route are defined. (The router goes through the routes, can't match, calls a browser navigation event that navigates to the same path but since the initial dispatch didn't take the qs into account, it would strip it away and then correctly parse the route since the qs would now be absent.)

The pull also addresses the issue of the query string being stripped away during the initial dispatch.

I also added tests to validate that matching now works with query strings and that it doesn't affect route param extraction.