Skip to content

Commit c6b3b45

Browse files
authored
[ENG-10383] fix: Navigating to the old /discover URL format should redirect to the current registry page (#925)
- Ticket: https://openscience.atlassian.net/browse/ENG-10383 - Feature flag: n/a ## Purpose Navigating to the old /discover URL format should redirect to the current registry page. https://osf.io/registries/dataarchive/discover and https://osf.io/registries/dataarchive/ ## Summary of Changes add to registrations router mapping for providerId/discover
1 parent 85fefea commit c6b3b45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/app/features/registries/registries.routes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export const registriesRoutes: Routes = [
4949
},
5050
{
5151
path: ':providerId',
52+
redirectTo: ':providerId/discover',
53+
pathMatch: 'full',
54+
},
55+
{
56+
path: ':providerId/discover',
5257
loadComponent: () =>
5358
import('@osf/features/registries/pages/registries-provider-search/registries-provider-search.component').then(
5459
(c) => c.RegistriesProviderSearchComponent

0 commit comments

Comments
 (0)