# router.transitionTo 仅在 chat page 时中断，但在 users page 等其他链接上可以正常工作

**URL:** <https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985>\
**Category:** Development\
**Created:** [2024 年1 月 9 日 10:08 UTC](https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985 "2024-01-09T10:08:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![robertkibet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robertkibet/32/290055_2.png) [@robertkibet](https://meta.discourse.org/u/robertkibet)\
发布日期： [2024 年1 月 9 日 10:08 UTC](https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985/1 "2024-01-09T10:08:19Z")

</div>

当我尝试触发 urlMethod update 时，`router.transitionTo('chat.index')` 被中止 `isAborted:true`，我无法弄清楚为什么会发生这种情况，请协助。

另一方面，我能够使用 `router.transitionTo('/categories')` 或 `router.transitionTo('/users')` 来触发和导航，所以我很困惑为什么只有聊天页面导航失败。

---

_[View the full topic](https://meta.discourse.org/t/router-transitionto-gets-aborted-only-for-chat-page-but-works-for-the-rest-of-the-links-like-users-page/290985)._
