Version used
Ex: 3.17.0, 3.18.0, 4.x (earlier versions may also be affected, but haven't gone back to check)
Describe the bug
There seems to be a scenario where client-side navigation is broken and it's related to the modification of history.pushState. Basically, when the PnP search results web part is on a page and you navigate using local site navigation, it stops working and the pushState is corrupted somehow.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Use the "Pages" link in the local site navigation

Once on the Pages library (same issue happens with Documents), click on any other local site navigation link and navigation is broken with the following error in the console.

Desktop (please complete the following information):
We are seeing exactly the same issue with the latest V3 and V4 webparts. v3.14.2 is the last version working well.
I cannot repro with the steps provided for dev branch of v4. v3 I do have repro.
Fixed for upcoming v4 and release v3.18.1 with a fix.
Most helpful comment
Fixed for upcoming v4 and release v3.18.1 with a fix.