From d446093588e9adfe288104d1b496e025c8d23bfb Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 22 Jan 2024 19:43:38 -0500 Subject: [PATCH] Redirect linked profile subpages (fix #603) --- src/realms/twitter/router.ts | 3 +++ 1 file changed, 3 insertions(+) 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));