FIX: client side /my/ redirects were appending extra slash

FIX: client side /my/ redirects were appending extra slash

diff --git a/app/assets/javascripts/discourse/app/lib/url.js b/app/assets/javascripts/discourse/app/lib/url.js
index f357e49..499b5d7 100644
--- a/app/assets/javascripts/discourse/app/lib/url.js
+++ b/app/assets/javascripts/discourse/app/lib/url.js
@@ -247,7 +247,7 @@ const DiscourseURL = EmberObject.extend({
       if (currentUser) {
         path = path.replace(
           myPath,
-          userPath(currentUser.get("username_lower") + "/")
+          userPath(currentUser.get("username_lower"))
         );
       } else {
         return redirectTo("/login-preferences");

GitHub sha: 40dfac17

1 Like

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

https://meta.discourse.org/t/link-to-my-preferences-goes-to-preferences/153809/5