# ionViewWillLeave info on next page

**URL:** <https://forum.ionicframework.com/t/ionviewwillleave-info-on-next-page/203182>\
**Category:** Ionic Framework\
**Created:** [January 20, 2021, 9:27am UTC](https://forum.ionicframework.com/t/ionviewwillleave-info-on-next-page/203182 "2021-01-20T09:27:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brune83](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@brune83](https://forum.ionicframework.com/u/brune83)\
**Post date:** [January 20, 2021, 9:27am UTC](https://forum.ionicframework.com/t/ionviewwillleave-info-on-next-page/203182/1 "2021-01-20T09:27:34Z")

</div>

Hi,  
I need to know which page I am navigating to inside the ionViewWillLeave event.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [January 20, 2021, 8:50pm UTC](https://forum.ionicframework.com/t/ionviewwillleave-info-on-next-page/203182/2 "2021-01-20T20:50:09Z")

</div>

While you wait for better answers, I’d like to urge you to rethink this design. Pages should be independent entities - that way you are drawing clear lines of responsibility demarcation that makes your app robust, testable, and maintainable. Any time a component needs to know anything about any other component - be it a child wanting to know where it’s hosted or a page wanting to know where it came from or is going to, that’s a flaming red flag of spaghetti in my book.
