Remove reload parameter during history handling

The regex is kind of complex here, so please take a close look.
In other languages, unused parameters are usually named `_`. I am not sure if that is the standard in JS, but I think it makes sense.