Views should still work when Query Params are added to the URL

The current routing method produced `404` when adding query params to valid URLs (e.g. `/home?nocache=true`) as the question mark was simply dropped and a view with the name `valid-viewnocache=true` cannot found.

The changes in this PR use the query string as the action if no path was set (e.g. `/?home`) but completely ignore the query string when a path was set (e.g. `/home?nocache=true`).