emberjs / emberjs/ember.js

Router service transitionTo cannot be aborted by current route

Open
#16,266 0 comments 0 reactions 0 assignees View on GitHub
Routing
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

When calling `router.transitionTo('someRoute')` in a component where router is the router service, the `willTransition` will get called for the current route. However, aborting the transition parameter of this hook will not abort the transition. The router will still transition to the specified route... Is the transition parameter another transition or?

**EDIT**
The transition can be aborted when calling `router._router.transitionTo`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.