Override swipe-back handling to define the previous page

Hi there,

By default the swipe-back feature in Ionic brings you back to the previous page, of course.

What I want to achieve is not to go back, but to go up in the page hierarchy, which is not necessarily the same. So I want to define my own back handling. Is there any possibility to achieve this?

I haven’t found anything in the documentation how to override the swipe-back handling.