Extending LinkComponent works with {{foo}} but not with {{#foo}}


#1

I’m extending LinkComponent like this:

entity-link.js 
import Ember from 'ember';
export default Ember.LinkComponent.extend({
});

entity-link.hbs 
<span class="glyphicon glyphicon-play-circle">
{{yield}}
</span>

It works fine when used like this:

{{#entity-link 'author' author class="btn btn-link pull-right"}}{{/entity-link}}

but triggers exception when used like this:

 {{entity-link 'author' author class="btn btn-link pull-right"}}

 Uncaught Error: There is no route named <front-end@model:author::ember735:1>

Seems that in the second case the route parameter is used to build the route name. Is this by-design, am I doing something wrong here?

#ember 2.4.1