# Transition to a route after confimation

**URL:** <https://discuss.emberjs.com/t/transition-to-a-route-after-confimation/13851>\
**Category:** Design\
**Created:** [November 6, 2017, 9:02pm UTC](https://discuss.emberjs.com/t/transition-to-a-route-after-confimation/13851 "2017-11-06T21:02:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harold](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@harold](https://discuss.emberjs.com/u/harold)\
**Post date:** [November 6, 2017, 9:02pm UTC](https://discuss.emberjs.com/t/transition-to-a-route-after-confimation/13851/1 "2017-11-06T21:02:25Z")

</div>

I just started learning ember and i face this scenario: In my edit page, I want to navigate away from it (i.e clicking a link on the menu) but by doing so a pop up dialog will show to confirm my decision and if I click on “Leave” button it will redirect to the list page. This is the current behavior. But what I want is to capture the link that was clicked and transition to that link after clicking the “Leave” button. Any thoughts?

---

<div class="post-metadata">

**Author:** ![lightblade](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lightblade/32/15632_2.png) [@lightblade](https://discuss.emberjs.com/u/lightblade)\
**Post date:** [November 7, 2017, 3:18am UTC](https://discuss.emberjs.com/t/transition-to-a-route-after-confimation/13851/2 "2017-11-07T03:18:19Z")

</div>

Sure. In your route, implement the `willTransition` action. The action handler receives an transition object as argument. You can call `.abort()` on it to abort the transition, do some other things, then call `.retry()` on the object to restart the transition. You can even attach additional info with your retry by attaching it to `.data` property on the transition object.
