Remove reload parameter during history handling

The regex is kind of complex here, so please take a close look.
Unfortunately, this isn't so simple. Right now the regex uses a positive lookahead to determine when the parameter ends. So even we used a capturing group in the last section, it wouldn't have any content. If we changed that to start capturing the next '&', then the regex would fail to find two consecutive parameters.