history
The browser global `history` was being used here instead of the React Router `history` object. This was accidentally broken when refactoring in #8269