Skip to content
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

Link-tos to generated route redirects throw error #13

Open
elwayman02 opened this issue Sep 30, 2015 · 1 comment
Open

Link-tos to generated route redirects throw error #13

elwayman02 opened this issue Sep 30, 2015 · 1 comment

Comments

@elwayman02
Copy link
Contributor

Steps to reproduce:

  1. Add the following to the dummy app:
    {{#link-to 'generated'}}Generated{{/link-to}}
  2. Run ember s
  3. Click the link and observer the following error:
    Uncaught TypeError: Cannot read property 'split' of undefined
    which occurs in this method snippet:
function findChildRouteName(parentRoute, originatingChildRoute, name) {
    var router = parentRoute.router;
    var childName;
    var targetChildRouteName = originatingChildRoute.routeName.split('.').pop();
@elwayman02 elwayman02 changed the title Link-tos to generated redirects throw error Link-tos to generated route redirects throw error Sep 30, 2015
@aaroncraigongithub
Copy link

I'm getting this same error, however it is provoked by hitting an arbitrary endpoint.

The issue is that originatingChildRoute.routeName is undefined. However it's hard to trace this back to the originating issue.

Removing ember-redirect and rebuilding the node modules makes the error go away, so I am assuming this is provoked by an uncaught error in ember-redirect which is being caught further up in ember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants