mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 02:20:54 +01:00
Redirect linked profile subpages (fix #603)
This commit is contained in:
parent
034a9614cc
commit
d446093588
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue