diff --git a/frontend/src/constants/routes.ts b/frontend/src/constants/routes.ts
index 9aac1a42df..3c7db9c995 100644
--- a/frontend/src/constants/routes.ts
+++ b/frontend/src/constants/routes.ts
@@ -19,7 +19,7 @@ const ROUTES = {
CHANNELS_NEW: '/setting/channels/new',
CHANNELS_EDIT: '/setting/channels/edit/:id',
ALL_ERROR: '/errors',
- ERROR_DETAIL: '/errors/:serviceName/:errorType',
+ ERROR_DETAIL: '/error-detail',
VERSION: '/status',
MY_SETTINGS: '/my-settings',
ORG_SETTINGS: '/settings/org-settings',
diff --git a/frontend/src/container/AllError/index.tsx b/frontend/src/container/AllError/index.tsx
index 500a5edb24..49d2dc0bef 100644
--- a/frontend/src/container/AllError/index.tsx
+++ b/frontend/src/container/AllError/index.tsx
@@ -7,7 +7,7 @@ import React, { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useQuery } from 'react-query';
import { useSelector } from 'react-redux';
-import { generatePath, Link } from 'react-router-dom';
+import { Link } from 'react-router-dom';
import { AppState } from 'store/reducers';
import { Exception } from 'types/api/errors/getAll';
import { GlobalReducer } from 'types/reducer/globalTime';
@@ -48,10 +48,7 @@ function AllErrors(): JSX.Element {
key: 'exceptionType',
render: (value, record): JSX.Element => (
{value}
diff --git a/frontend/src/container/ErrorDetails/index.tsx b/frontend/src/container/ErrorDetails/index.tsx
index 702967fa08..a5f8efe756 100644
--- a/frontend/src/container/ErrorDetails/index.tsx
+++ b/frontend/src/container/ErrorDetails/index.tsx
@@ -18,10 +18,12 @@ function ErrorDetails(props: ErrorDetailsProps): JSX.Element {
const { search } = useLocation();
const params = new URLSearchParams(search);
const queryErrorId = params.get('errorId');
+ const serviceName = params.get('serviceName');
+ const errorType = params.get('errorType');
const errorDetail = idPayload;
- const [stackTraceValue] = useState(errorDetail.excepionStacktrace);
+ const [stackTraceValue] = useState(errorDetail.exceptionStacktrace);
const columns = useMemo(
() => [
@@ -41,7 +43,7 @@ function ErrorDetails(props: ErrorDetailsProps): JSX.Element {
const keyToExclude = useMemo(
() => [
- 'excepionStacktrace',
+ 'exceptionStacktrace',
'exceptionType',
'errorId',
'timestamp',
@@ -64,9 +66,11 @@ function ErrorDetails(props: ErrorDetailsProps): JSX.Element {
return;
}
- history.push(`${history.location.pathname}?errorId=${id}`);
-
setLoading(false);
+
+ history.push(
+ `${history.location.pathname}?errorId=${id}&serviceName=${serviceName}&errorType=${errorType}`,
+ );
} catch (error) {
notification.error({
message: t('something_went_wrong'),
@@ -101,7 +105,6 @@ function ErrorDetails(props: ErrorDetailsProps): JSX.Element {
- {/* } /> */}