diff --git a/app/assets/javascripts/discourse/app/lib/url.js b/app/assets/javascripts/discourse/app/lib/url.js index ae73638a706..682a6259363 100644 --- a/app/assets/javascripts/discourse/app/lib/url.js +++ b/app/assets/javascripts/discourse/app/lib/url.js @@ -243,7 +243,8 @@ const DiscourseURL = EmberObject.extend({ // Rewrite /my/* urls let myPath = getURL("/my"); - if (path.indexOf(myPath) === 0) { + const fullPath = getURL(path); + if (fullPath.indexOf(myPath) === 0) { const currentUser = User.current(); if (currentUser) { path = path.replace(