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

URL redirection #213

Closed
ntarocco opened this issue Oct 15, 2024 · 0 comments · Fixed by #261 or #279
Closed

URL redirection #213

ntarocco opened this issue Oct 15, 2024 · 0 comments · Fixed by #261 or #279
Labels
migration Migration task
Milestone

Comments

@ntarocco
Copy link
Contributor

ntarocco commented Oct 15, 2024

Implement URL redirection of:

  • /collection/CERN%20Students%20Projects -> /communties/<SSPN>
  • /search?...cc=CERN Students Projects...[p=<query>] -> /communties/<SSPN>/search?q=<query>
  • Also with c only on not? Check search_engine.py not for now
  • Ideally, we should parse the p= param, to detect if there is a Marc21 field, and redirect to the same search re-mapped. Example: p=245__a:my title (or p=245:my title) should redirect to q=metadata.title:my title. The issue is that some fields change per collection. Do we take it into account? Not for now
  • Redirect submission form for sspn, when url is https://cds.cern.ch/submit and has parameters comboDEPIN=CSPN and doctype=DEPIN, redirect to https://dev-cds-rdm.web.cern.ch/uploads/new?community=sspn

Technical details

We don't want to expose a /legacy anywhere, therefore we can't respond with a Redirect /legacy from current CDS.

For the migrated collection:

  1. update CDS webserver to redirect migrated paths /<path> to repository.cern/<path>. For example, /collection/SSPN to repository.cern/collection/SSPN

  2. in new CDS webserver, we should add an internal rewrite/redirection/rule in the main location similar to:

    when the host is not repository.cern
    AND
    the URL path matches one of the migrated paths (e.g. /collection, /files, /record)
    THEN
    add an internal rewrite to /legacy/<path>
    OTHERWISE
    the request should go to the / (maybe a valid URL for InvenioRDM.

@ntarocco ntarocco added this to the SSPN milestone Oct 15, 2024
@ntarocco ntarocco added the migration Migration task label Oct 15, 2024
@sakshamarora1 sakshamarora1 moved this to In progress in Sprint Q4/2024 🎄 Nov 8, 2024
@sakshamarora1 sakshamarora1 removed their assignment Nov 22, 2024
@sakshamarora1 sakshamarora1 removed their assignment Nov 28, 2024
@sakshamarora1 sakshamarora1 moved this from In progress to In review 🔎 in Sprint Q4/2024 🎄 Nov 28, 2024
@github-project-automation github-project-automation bot moved this from In review 🔎 to To release 🤖 in Sprint Q4/2024 🎄 Nov 28, 2024
@sakshamarora1 sakshamarora1 reopened this Nov 29, 2024
@kpsherva kpsherva moved this from To release 🤖 to In progress in Sprint Q4/2024 🎄 Dec 4, 2024
@sakshamarora1 sakshamarora1 moved this from In progress to In review 🔎 in Sprint Q4/2024 🎄 Dec 6, 2024
@kpsherva kpsherva moved this from In review 🔎 to In progress in Sprint Q4/2024 🎄 Dec 9, 2024
@sakshamarora1 sakshamarora1 moved this from In progress to In review 🔎 in Sprint Q4/2024 🎄 Dec 9, 2024
@github-project-automation github-project-automation bot moved this from In review 🔎 to To release 🤖 in Sprint Q4/2024 🎄 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration Migration task
Projects
None yet
2 participants