The onclick listening tries not to do anything when navigating to a hash
within the same page. However previously it did not take the search
into consideration so when you were on a page with a query param and
then navigating to the same path, without a query param, but with a
hash, it would cause a page navigation.
Fix is to include the search in this algorithm. Fixes #289
Coverage increased (+0.1%) to 91.379% when pulling 63ecd88b136d587991336e7374704677cbe85a65 on query-hash into 1a4a665394d59693e0d465b724eac4c89c710eaa on master.
The onclick listening tries not to do anything when navigating to a hash within the same page. However previously it did not take the
search
into consideration so when you were on a page with a query param and then navigating to the same path, without a query param, but with a hash, it would cause a page navigation.Fix is to include the search in this algorithm. Fixes #289