Skip to content

Commit

Permalink
Merge a7b46d2 into fefc728
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Feb 27, 2019
2 parents fefc728 + a7b46d2 commit f05cce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/preprints/provider/preprint-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default Controller.extend({
'preprint',
preprintId,
{ include: ['node', 'license', 'review_actions', 'contributors'] },
).catch(() => this.replaceWith('page-not-found'));
).catch(() => this.transitionToRoute('page-not-found'));

this.set('preprint', response);
this.set('authors', response.get('contributors'));
Expand Down
3 changes: 2 additions & 1 deletion app/routes/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default Route.extend(OSFAgnosticAuthRouteMixin, {
session: service(),
currentUser: service(),

afterModel() {
beforeModel() {
this._super(...arguments);
const availableLocales = this.get('i18n.locales').toArray();
let locale;

Expand Down

0 comments on commit f05cce8

Please sign in to comment.