Skip to content

Commit

Permalink
front: restore deprecated url feed/recommendations for backward compa…
Browse files Browse the repository at this point in the history
…tibility
  • Loading branch information
GresilleSiffle committed Dec 19, 2024
1 parent 9672396 commit 507d619
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 10 additions & 1 deletion frontend/src/app/PollRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const PollRoutes = ({ pollName }: Props) => {
page: PwaEntryPoint,
type: PublicRoute,
},
// deprecated, kept for backward compatibility, should be deleted later
// in 2025
{
id: RouteID.FeedCollectiveRecommendations,
url: 'feed/recommendations',
page: PwaEntryPoint,
type: PublicRoute,
},
{
id: RouteID.FeedTopItems,
url: 'feed/top',
Expand All @@ -86,7 +94,8 @@ const PollRoutes = ({ pollName }: Props) => {
page: SearchPage,
type: PublicRoute,
},
// kept for backward compatibility
// deprecated, kept for backward compatibility, should be deleted later
// in 2025
{
id: RouteID.CollectiveRecommendations,
url: 'recommendations',
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export enum RouteID {
FeedForYou = 'feedForYou',
FeedTopItems = 'feedTopItems',
Search = 'search',
// depracated feed, replaced by FeedTopItems, should redirect to FeedTopItems
// deprecated feed, replaced by FeedForYou, should be deleted later in 2025
FeedCollectiveRecommendations = 'feedCollectiveRecommendations',
// depracated feed, replaced by FeedTopItems, should be deleted later in 2025
CollectiveRecommendations = 'collectiveRecommendations',
EntityAnalysis = 'entityAnalysis',
FAQ = 'FAQ',
Expand Down

0 comments on commit 507d619

Please sign in to comment.