Remove reload parameter during history handling

The regex is kind of complex here, so please take a close look.
This could also be `return delim == '?' ? '?' : '';`, but that really hurts my head. :stuck_out_tongue_closed_eyes: