From 2daf78c2d1e5071094f93f94c3213543d8501f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 5 Jan 2026 23:50:46 +0100 Subject: [PATCH] pl-fe: add redirect for removed route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/features/ui/router/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/pl-fe/src/features/ui/router/index.tsx b/packages/pl-fe/src/features/ui/router/index.tsx index 296f1e92b..7f16aa292 100644 --- a/packages/pl-fe/src/features/ui/router/index.tsx +++ b/packages/pl-fe/src/features/ui/router/index.tsx @@ -1234,6 +1234,14 @@ const redirectInviteRoute = createRoute({ return ; }, }); +const redirectWithRepliesRoute = createRoute({ + getParentRoute: () => rootRoute, + path: '/@{$username}/with_replies', + component: () => { + const { username } = redirectWithRepliesRoute.useParams(); + return ; + }, +}); const redirectRoutes = [ createRoute({ getParentRoute: () => rootRoute, path: '/timelines/home', component: () => }), createRoute({ getParentRoute: () => rootRoute, path: '/timelines/public/local', component: () => }), @@ -1259,6 +1267,8 @@ const redirectRoutes = [ redirectPleromaStatusRoute, redirectPleromaUsernameRoute, redirectIceshrimpStatusRoute, + redirectInviteRoute, + redirectWithRepliesRoute, ]; const routeTree = rootRoute.addChildren([