Remove reload parameter during history handling

The regex is kind of complex here, so please take a close look.
What do you think about adding here:
```js
if (spf.string.endsWith(url, '?')) {
  // remove trailing ?
}
```