fix(*): ignore trailing parameters

Previously our detection got confused
by trailing parameters (e.g. ?now=1)
which wasn't a problem previously
because the ?now=1 parameter wasn't
trailing before we switched to hash-free
URLs.