mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 16:53:45 +08:00
FIX: rewrite of /my/
URL should work on sub directory site too.
This commit is contained in:
parent
d4d210eb60
commit
c661934d41
|
@ -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