# Programmatically read/change navigation history

**URL:** <https://forum.inductiveautomation.com/t/programmatically-read-change-navigation-history/10981>\
**Category:** General Discussion\
**Created:** [January 4, 2016, 3:54pm UTC](https://forum.inductiveautomation.com/t/programmatically-read-change-navigation-history/10981 "2016-01-04T15:54:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [January 4, 2016, 3:54pm UTC](https://forum.inductiveautomation.com/t/programmatically-read-change-navigation-history/10981/1 "2016-01-04T15:54:28Z")

</div>

Hi,  
is there a way to programmatically read/change the navigation history?  
Imagine the following scenario:

- from Page0 I swap to Page1
- from Page1 I swap to Page2
- the back button on Page2 should take me back to Page0: then I need to pop off the navigation stack Page1, just after swapping from Page1 to Page2.

This is only a simple example, but sometimes my needs get more complicated.

Any suggestion?

Thanks in advance
