adopted-ember-addons / adopted-ember-addons/ember-router-helpers

how to use url-for with Engines?

Ouverte
#93 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
38
Forks
16
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I created a demo repo that uses `{{url-for "an-external-route"}}`, but I get "There is no route named..."

Where `"an-external-route"` is a mapping of:

```
externalRoutes: {
'an-external-route': 'a-parent-app-route.index'
}
```

If I change `"an-external-route"` to be the name of an _actual route_ in the host app, then it works.

https://github.com/amk221/-ember-url-for-helper-example

Do we need `url-for-external`?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start from the linked demo repo commit that reproduces `{{url-for "an-external-route"}}` failing with an `externalRoutes` mapping. Compare that behavior with using a real host-app route name, then inspect how ember-router-helpers resolves route names. Done means the helper has a decided approach for Engine external routes, such as documented unsupported behavior or a working helper/API.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
28/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.