You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
{ path: '', redirectTo: '/list(full:full)', pathMatch: 'full', }
gives me
unpkg.com/@angular/core/bundles/core.umd.js:3004 EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'list(full%3Afull)'
Expected behavior
should navigate to /list(full:full)
Minimal reproduction of the problem with instructions
Replace the current default route (redirectTo) with the commented out to get above exception
Navigating to /list(full:full) works with router.navigate() - click on the [navigate] button
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Only tried in Plunker in Chrome
Angular version: 2.0.X
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
I'm facing the same problem here and want to contribute something to "What is the motivation / use case for changing the behaviour"
My application is divided into two columns.
First one contains sidebar and beneath it an "action area" (outlet: actions) where typical actions like "Save this and that" are located. The second one is the main content area (outlet: primary).
The actions area depends on the main content - obviously. If you are in Customers pages you want a different actions-component (e. g. CustomersEditActionsComponent) in that actions outlet than in Settings pages (e. g. SettingsActionsComponent).
That's necessary because normal users don't type those aux-routes-bracket-stuff. They know "If I type /settings I should come to Settings, if I type /profile I should come to my profile..." for years now. Problem is: route would open, actions outlet would be empty, application does not work as expected.
thank you!
Reacted by Gregor Woiwode, Günter Zöchbauer, Jake, Vlad Sabev, Georgii Dolzhykov and mybirthname
Activity
steffenstolze commentedon Nov 9, 2016
I'm facing the same problem here and want to contribute something to "What is the motivation / use case for changing the behaviour"
My application is divided into two columns.
First one contains sidebar and beneath it an "action area" (outlet: actions) where typical actions like "Save this and that" are located. The second one is the main content area (outlet: primary).
The actions area depends on the main content - obviously. If you are in Customers pages you want a different actions-component (e. g. CustomersEditActionsComponent) in that actions outlet than in Settings pages (e. g. SettingsActionsComponent).
When a user navigates to 'www.myapp.com/settings', I actually want to router to navigate to 'www.myapp.com/settings/core(actions:settings-actions)' - per default. But this won't work:
That's necessary because normal users don't type those aux-routes-bracket-stuff. They know "If I type /settings I should come to Settings, if I type /profile I should come to my profile..." for years now. Problem is: route would open, actions outlet would be empty, application does not work as expected.
thank you!
DzmitryShylovich commentedon Nov 15, 2016
Related to #12371
fix(router): support redirects to named outlets
angular-automatic-lock-bot commentedon Sep 10, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(router): support redirects to named outlets