do not consider query string when looking up pages (fixes #360)