Ionic NavController canGoBack() always returns false

This happens even on a page where the back button shows and where if the back button is clicked it does take the user to a previous page meaning that the stack length is larger than 0. This happens throughout the app