User page stops loading when I add a link

Hi, I am new to discourse. Firstly, a big ups to the discourse team for creating such a beautiful site.

I am trying to add a button to the user-profile-controls plugin outlet. I have gone through the guides available on meta and have managed to create a route and template. The template loads with the route I assigned. Also, if I add the button alone it appears on the outlet. However, whenever I try and add a link to, to the button the user profile doesn’t show up when refreshing the page. See code below:

{{#link-to ‘user.userViews’ }}
{{#if currentUser}}
{{d-button id=“user-views”
class=“btn-default”
icon=“plus”
label=“USER VIEWS”}}
{{/if}}
{{/link-to}}

If anyone can help it will be appreciated. I am new to rails, discourse, ember and coding in general. Hence the name.

1 Like