# Browser hangs on navigateToRoute v1.7.1

**URL:** <https://discourse.aurelia.io/t/browser-hangs-on-navigatetoroute-v1-7-1/4825>\
**Category:** Help Requests\
**Created:** [June 28, 2022, 10:09am UTC](https://discourse.aurelia.io/t/browser-hangs-on-navigatetoroute-v1-7-1/4825 "2022-06-28T10:09:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Interopnl](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/interopnl/32/2324_2.png) [@Interopnl](https://discourse.aurelia.io/u/Interopnl)\
**Post date:** [June 28, 2022, 10:09am UTC](https://discourse.aurelia.io/t/browser-hangs-on-navigatetoroute-v1-7-1/4825/1 "2022-06-28T10:09:20Z")

</div>

I have the following piece of code that is triggered on a button click, everything works as expected but when the code reaches: this.router.navigateToRoute the whole browser hangs.

Can someone explain this behavior to me?

```auto
async submit() {
        var isValid = await this.isDeliveryValid();
        if(isValid)
        {
           var response = await this.createOrder();
           if(response.isCreated){
                await this.dialogService.open({
                    viewModel: MessageModal,
                    model: [
                        "Some Message",
                        response.message
                    ]
                }).whenClosed();
                this.router.navigateToRoute("emails");
           }
        }
    }

```

---

<div class="post-metadata">

**Author:** ![MaximBalaganskiy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/maximbalaganskiy/32/831_2.png) [@MaximBalaganskiy](https://discourse.aurelia.io/u/MaximBalaganskiy)\
**Post date:** [July 3, 2022, 9:06am UTC](https://discourse.aurelia.io/t/browser-hangs-on-navigatetoroute-v1-7-1/4825/2 "2022-07-03T09:06:43Z")

</div>

Emails route activate method may return a promise which never resolves causing the framework to wait indefinitely
