-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alias a route to another in a different branch #7
Comments
This presently isn't possible. 😄 Noted as an enhancement. This isn't high on my priority list so if you wanted to add this you'd start by building and saving off a stack here: https://github.com/nathanhammond/ember-route-alias/blob/master/addon/initializers/route-alias.js#L50-L53. I'll gladly review a PR and help you along the way! |
I came here to request this as well. this.route('foo', function() {
this.route('bar', { resetNamespace: true });
});
this.route('bar'); We also have two navigation buttons linking to Ideally, we could do something like this: this.route('foo', function() {
this.route('bar', { resetNamespace: true });
});
this.alias('bar', '/bar', 'foo.bar'); |
@brumm What you're doing in your first example will result in a collision. You can't
In short the result is this.route('foo', function() {
this.route('bar');
});
this.alias('bar', '/bar', 'foo.bar'); This is exactly the goal of this issue, and still not high on my priority list. Still happy to guide somebody through a PR. |
If I have route a/b/c, how could I alias x/y to it?
Example:
The text was updated successfully, but these errors were encountered: