Skip to content

Commit

Permalink
Fix reroute to not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Nov 1, 2024
1 parent 05147b1 commit 03b22dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/institutions/dashboard/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import InstitutionDepartmentModel from 'ember-osf-web/models/institution-departm
import InstitutionSummaryMetricModel from 'ember-osf-web/models/institution-summary-metric';
import { QueryHasManyResult } from 'ember-osf-web/models/osf-model';
import captureException from 'ember-osf-web/utils/capture-exception';
import { notFoundURL } from 'ember-osf-web/utils/clean-url';

export interface InstitutionsDashboardModel {
institution: InstitutionModel;
Expand Down Expand Up @@ -42,7 +43,7 @@ export default class InstitutionsDashboardRoute extends Route {
};
} catch (error) {
captureException(error);
this.transitionTo('not-found', this.router.get('currentURL').slice(1));
this.transitionTo('not-found', notFoundURL(window.location.pathname));
return undefined;
}
}
Expand Down

0 comments on commit 03b22dd

Please sign in to comment.