diff --git a/public/apps/customerror/custom-error.tsx b/public/apps/customerror/custom-error.tsx
index eb4dd9f2e..fab81c218 100644
--- a/public/apps/customerror/custom-error.tsx
+++ b/public/apps/customerror/custom-error.tsx
@@ -21,6 +21,7 @@ import { Router, Route } from 'react-router-dom';
import { ERROR_MISSING_ROLE_PATH } from '../../../common';
import { ClientConfigType } from '../../types';
import './_index.scss';
+import { logout } from '../account/utils';
interface CustomErrorDeps {
title: string;
@@ -45,8 +46,8 @@ export function CustomErrorPage(props: CustomErrorDeps) {
{props.subtitle}
-
- Back to OpenSearch Dashboards Home
+ logout(props.http, '')} fullWidth>
+ Logout
);