Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for legacy compendia routes #436

Open
nozomione opened this issue Jan 9, 2025 · 0 comments · May be fixed by #442
Open

Add support for legacy compendia routes #436

nozomione opened this issue Jan 9, 2025 · 0 comments · May be fixed by #442
Assignees

Comments

@nozomione
Copy link
Member

nozomione commented Jan 9, 2025

Context

We've introduced a new routing pattern for compendia in refinebio-web, which differs from the existing pattern in refinebio-frontend (currently in production on refine.bio)

Here is the comparison of the old and new paths:

Page Old Path New Path
Compendia Tabs compendia?c=[type] compendia/[type]
Download compendia/download?organism=[organismName]&url=[downloadUrl] compendia/normalized/download/[organismName]

We need to ensure backward compatibility by supporting the legacy routes when transitioning from refinebio-frontend to refinebio-web.

Solution or next step

  • Implement logic to detect legacy compendia paths by creating the following route pattern files:
    • Forcompendia: pages/compendia/index.js
    • For compendia/download : pages/compendia/download.js
  • Redirect users to the new URLs when legacy paths are detected
@nozomione nozomione self-assigned this Jan 9, 2025
@nozomione nozomione linked a pull request Jan 16, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant