From ade9c1e879d097889ff44c0f372013e0a8962707 Mon Sep 17 00:00:00 2001 From: Brian Pilati Date: Mon, 13 Nov 2023 14:19:07 -0700 Subject: [PATCH] Fixed the routing for /preprints/ --- app/preprints/index/route.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/preprints/index/route.ts b/app/preprints/index/route.ts index d24f7602ead..83a986e6715 100644 --- a/app/preprints/index/route.ts +++ b/app/preprints/index/route.ts @@ -46,8 +46,12 @@ export default class Preprints extends Route { }; } catch (error) { - captureException(error); - this.router.transitionTo('not-found', 'preprints'); + if (params.provider_id) { + this.router.transitionTo('resolve-guid', params.provider_id); + } else { + captureException(error); + this.router.transitionTo('not-found', 'preprints'); + } return null; } }