Fix back-forward graceful fail by tracking history on client side.