-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX] <LinkTo>
should link within the engine when used inside one
#19223
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -875,7 +875,7 @@ moduleFor( | |
|
||
["@test query params don't have stickiness by default between model"](assert) { | ||
assert.expect(1); | ||
let tmpl = '{{#link-to "blog.category" 1337}}Category 1337{{/link-to}}'; | ||
let tmpl = '{{#link-to "category" 1337}}Category 1337{{/link-to}}'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this is one way you can tell this is a breaking change. Do people really use engines without the engines addon though? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chancancode I don't think we actually support engines without the ember-engines addon. All of our documentation and guidance on usage of engines has been in context of using the addon (roughly akin to how we now are allowed to assume folks use ember-source through ember-cli). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rwjblue and how about don't use |
||
this.setupAppAndRoutableEngine(); | ||
this.additionalEngineRegistrations(function () { | ||
this.register('template:category', compile(tmpl)); | ||
|
@@ -895,7 +895,7 @@ moduleFor( | |
) { | ||
assert.expect(2); | ||
let tmpl = | ||
'{{#link-to "blog.author" 1337 class="author-1337"}}Author 1337{{/link-to}}{{#link-to "blog.author" 1 class="author-1"}}Author 1{{/link-to}}'; | ||
'{{#link-to "author" 1337 class="author-1337"}}Author 1337{{/link-to}}{{#link-to "author" 1 class="author-1"}}Author 1{{/link-to}}'; | ||
this.setupAppAndRoutableEngine(); | ||
this.additionalEngineRegistrations(function () { | ||
this.register('template:author', compile(tmpl)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great stuff!