Navigation is succesful but url doesn't get updated when on device

I am using angular routing and when I test it on the device, the navigation happens the way it should be, but the URL doesn’t get updated. So when I use router.url I am not getting the correct url.

please provide minimal repo to reproduce.