Skip to content

Commit

Permalink
FIX: link to the user preferences page is incorrect in user admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothkannans committed Jan 24, 2019
1 parent dda918f commit b9bf751
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export default Ember.Controller.extend(CanCheckEmails, {
return [];
},

preferencesPath: fmt("model.username_lower", "%@/preferences"),
@computed("model.username_lower")
preferencesPath(username) {
return userPath(`${username}/preferences`);
},

@computed("model.can_delete_all_posts", "model.staff", "model.post_count")
deleteAllPostsExplanation(canDeleteAllPosts, staff, postCount) {
Expand Down

1 comment on commit b9bf751

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/link-to-users-preference-page-from-admin-view-returns-404/107424/3

Please sign in to comment.