mirror of
https://github.com/discourse/discourse.git
synced 2025-04-29 17:14:34 +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
|
// 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…
x
Reference in New Issue
Block a user