# User page stops loading when I add a link

**URL:** <https://meta.discourse.org/t/user-page-stops-loading-when-i-add-a-link/49961>\
**Category:** Development\
**Created:** [2016年九月10日 09:28 UTC](https://meta.discourse.org/t/user-page-stops-loading-when-i-add-a-link/49961 "2016-09-10T09:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novice](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Novice](https://meta.discourse.org/u/Novice)\
**Post date:** [2016年九月10日 09:28 UTC](https://meta.discourse.org/t/user-page-stops-loading-when-i-add-a-link/49961/1 "2016-09-10T09:28:17Z")

</div>

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.
