Seem to have found the issue here, with prod builds the app is compiled, resulting in the short names.
Using something like the ionViewDidEnter() to then fire an event for the current page name (as a string) or write to storage works for keeping track of the current page