FIX: link to the user preferences page is incorrect in user admin page

FIX: link to the user preferences page is incorrect in user admin page

diff --git a/app/assets/javascripts/admin/controllers/admin-user-index.js.es6 b/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
index 62cba93..dce7869 100644
--- a/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
@@ -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) {

GitHub sha: b9bf751b

1 Like

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