Mimic legacy behavior for history

Delete existing entry for page before adding new one