Merge branch 'guest-alt-routes' into 'develop'

guestExperience: add alternate user routes

See merge request soapbox-pub/soapbox-fe!1531
This commit is contained in:
Alex Gleason 2022-06-16 14:20:35 +00:00
commit 4b528e68fd
1 changed files with 6 additions and 1 deletions

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