mirror of
https://github.com/discourse/discourse.git
synced 2025-01-06 08:53:43 +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
|
// Rewrite /my/* urls
|
||||||
let myPath = getURL("/my");
|
let myPath = getURL("/my");
|
||||||
if (path.indexOf(myPath) === 0) {
|
const fullPath = getURL(path);
|
||||||
|
if (fullPath.indexOf(myPath) === 0) {
|
||||||
const currentUser = User.current();
|
const currentUser = User.current();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
path = path.replace(
|
path = path.replace(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user