mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:38:17 +08:00
FIX: rewrite of /my/
URL should work on sub directory site too.
This commit is contained in:
parent
4593bb60c5
commit
cdca5a2ee4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user