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

This commit is contained in:
Vinoth Kannan 2020-08-05 00:56:49 +05:30
parent 4593bb60c5
commit cdca5a2ee4
1 changed files with 2 additions and 1 deletions

View File

@ -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(