The other poster is wrong, the entire reason the history API exists is specifically because when these SPA frameworks first came onto the scene one of the things that was broken was history.
So they invented the history API's so SPA's could stop breaking some of the user expectations they were breaking.