From cd19ff8bf541a50efade20669e93fdbf67fb8efa Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Thu, 4 May 2023 12:33:38 +0800 Subject: [PATCH] fix(console): fix the back link of the log details page (#3805) --- packages/console/src/pages/AuditLogDetails/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/AuditLogDetails/index.tsx b/packages/console/src/pages/AuditLogDetails/index.tsx index 7c43d6ac7..ca5011f11 100644 --- a/packages/console/src/pages/AuditLogDetails/index.tsx +++ b/packages/console/src/pages/AuditLogDetails/index.tsx @@ -21,7 +21,7 @@ import EventIcon from './components/EventIcon'; import * as styles from './index.module.scss'; const getAuditLogDetailsRelatedResourceLink = (pathname: string) => - `/${pathname.slice(0, pathname.lastIndexOf('/'))}`; + `${pathname.slice(0, pathname.lastIndexOf('/'))}`; const getDetailsTabNavLink = (logId: string, userId?: string) => userId ? `/users/${userId}/logs/${logId}` : `/audit-logs/${logId}`;