diff --git a/src/realms/twitter/router.ts b/src/realms/twitter/router.ts index 3f79666..d20a650 100644 --- a/src/realms/twitter/router.ts +++ b/src/realms/twitter/router.ts @@ -102,5 +102,8 @@ twitter.get('/hashtag/:hashtag', genericTwitterRedirect); twitter.get('/:handle/', _profileRequest); twitter.get('/:handle', _profileRequest); +/* Redirect profile subpages in case someone links them for some reason (https://github.com/FixTweet/FxTwitter/issues/603) */ +twitter.get('/:handle/:subpage', genericTwitterRedirect); +twitter.get('/:handle/:subpage/', genericTwitterRedirect); twitter.all('*', async c => c.redirect(Constants.REDIRECT_URL, 302));