correct back button logic when rewriting history.
when using back, actually go to the pushed state. Appears to work for both rewritten and normal history