Bug with build --prod and minimization

I used in code recognition of parent of view with
NavController getPrevious().name
with --prod, it gives minimized name than really estimated and debugged without --prod

To solve this problem had to store pagenames with minimized aliases and noticed, what at ionViewDidEnter event NavController.getActive().name has still old page info.
How to get name of loaded view?
Now have to use ugly solution with setTimeout…

I think any attempt to rely on page names in code is inherently unavoidably brittle. I would rethink the design.