# Navigate to page last action?

**URL:** <https://forum.bubble.io/t/navigate-to-page-last-action/1796>\
**Category:** Need help\
**Created:** [February 28, 2016, 1:27pm UTC](https://forum.bubble.io/t/navigate-to-page-last-action/1796 "2016-02-28T13:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bradluffy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bradluffy/32/955_2.png) [@Bradluffy](https://forum.bubble.io/u/Bradluffy)\
**Post date:** [February 28, 2016, 1:27pm UTC](https://forum.bubble.io/t/navigate-to-page-last-action/1796/1 "2016-02-28T13:27:24Z")

</div>

So I am setting a delete function to delete current pages x. If I set the navigate to after the delete workflow is complete then it loses the parent value and goes to a page with no data. If I set the navigate to before the delete workflow is complete then it seems to work just fine. I go to other page with data and x gets deleted. But I get an error that says that navigate to page must be the last action of the workflow. Am I inadvertently doing something else when I set the delete action to take place after the navigate to page action that I don’t know about? It seems to work fine but before I deploy I want to make sure.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 28, 2016, 1:39pm UTC](https://forum.bubble.io/t/navigate-to-page-last-action/1796/2 "2016-02-28T13:39:36Z")

</div>

Not quite sure I understand, but you could set the “to be delete” thing onto a custom state, delete it, then navigate.

But not sure why you want to send deleted data to a page ?

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [February 28, 2016, 5:06pm UTC](https://forum.bubble.io/t/navigate-to-page-last-action/1796/3 "2016-02-28T17:06:57Z")

</div>

try to pass a parameter the deletes the page after you have navigated to the other. Use on page load workflow

---

<div class="post-metadata">

**Author:** ![Bradluffy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bradluffy/32/955_2.png) [@Bradluffy](https://forum.bubble.io/u/Bradluffy)\
**Post date:** [February 29, 2016, 12:58am UTC](https://forum.bubble.io/t/navigate-to-page-last-action/1796/4 "2016-02-29T00:58:56Z")

</div>

Hmmm will have to think about these approaches. Not trying to send deleted data to a page. Just wanted to ensure I got back to the same page I came from to delete the subject item.
