Something wrong with history



I’ve built a tabs-app. There’re 2 children states and 1 common state where I get from those children ones. The transitions between any child and common state are always correct. The error happens when I return.
What do I do wrong?

See the Pen JoYqQw by andrey (@kalinichenko) on CodePen.