diff --git a/contentcuration/contentcuration/frontend/shared/views/errors/GenericError.vue b/contentcuration/contentcuration/frontend/shared/views/errors/GenericError.vue index abd348d27f..1f36b5438f 100644 --- a/contentcuration/contentcuration/frontend/shared/views/errors/GenericError.vue +++ b/contentcuration/contentcuration/frontend/shared/views/errors/GenericError.vue @@ -1,7 +1,7 @@ - + - import AppError from './AppError'; + import StudioAppError from './StudioAppError'; import ReportErrorModal from './ReportErrorModal'; export default { name: 'GenericError', components: { - AppError, + StudioAppError, ReportErrorModal, }, props: { @@ -73,6 +70,13 @@ reloadPage() { global.location.reload(); }, + backToHomeAction() { + this.$router.push(this.backHomeLink).catch(e => { + if (e.name === 'NavigationDuplicated') { + this.reloadPage(); + } + }); + }, }, $trs: { genericErrorHeader: 'Sorry, something went wrong',