```js
eq_(new URL(window.location.origin + '/foo/bar/?src=all-popular').pathname, '/foo/bar');
```