guestExperience: add alternate user routes

This commit is contained in:
Alex Gleason 2022-06-15 10:50:45 -05:00
parent f34a5b81f8
commit e03a22f88d
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -609,7 +609,12 @@ const UI: React.FC = ({ children }) => {
const isProfileOrStatusPage = !!matchPath(
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