This repository contains ionic app, that demonstrates bug with replacing pages while using $state