guestExperience: add alternate user routes
This commit is contained in:
parent
f34a5b81f8
commit
e03a22f88d
|
@ -609,7 +609,12 @@ const UI: React.FC = ({ children }) => {
|
||||||
|
|
||||||
const isProfileOrStatusPage = !!matchPath(
|
const isProfileOrStatusPage = !!matchPath(
|
||||||
history.location.pathname,
|
history.location.pathname,
|
||||||
['/@:username', '/@:username/posts/:statusId'],
|
[
|
||||||
|
'/@:username',
|
||||||
|
'/@:username/posts/:statusId',
|
||||||
|
'/users/:username',
|
||||||
|
'/users/:username/statuses/:statusId',
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
// Require login if Guest Experience is disabled and we're not trying
|
// Require login if Guest Experience is disabled and we're not trying
|
||||||
|
|
Loading…
Reference in New Issue