Skip to content

A platform for community discussion. Free, open, simple.

FIX: rewrite of `/my/`URL should work on sub directory site too.

Vinoth Kannancdca5a2ee44d
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(