-
- Downloads
browse: Fix redirect issue in search interface
When searching for an origin URL, the search interface redirects to its browse interface if the origin URL exists in SWH database. Nevertheless, it the origin could not be archived, the redirection was still done leading to a 404 error so ensure to check the origin has a snapshot before redirecting. Fixes #4828.
Showing
- assets/src/utils/functions.js 6 additions, 7 deletionsassets/src/utils/functions.js
- cypress/e2e/origin-search.cy.js 12 additions, 13 deletionscypress/e2e/origin-search.cy.js
- swh/web/conftest.py 1 addition, 1 deletionswh/web/conftest.py
- swh/web/tests/data.py 15 additions, 5 deletionsswh/web/tests/data.py
- swh/web/utils/tests/test_utils.py 1 addition, 1 deletionswh/web/utils/tests/test_utils.py
Loading
Please register or sign in to comment