Skip to content

Commit

Permalink
Fixed the routing for /preprints/<guid>
Browse files Browse the repository at this point in the history
  • Loading branch information
bp-cos committed Nov 13, 2023
1 parent 2a7be0b commit ade9c1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/preprints/index/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ade9c1e

Please sign in to comment.