From 3f0a1552e6b01e9ce36cf874d8392c64b7a0d281 Mon Sep 17 00:00:00 2001 From: Amit Oren Date: Thu, 16 Jan 2025 07:37:07 +0200 Subject: [PATCH] Fix application url for custom base href (#21377) Signed-off-by: Amit Oren --- ui/src/app/applications/components/utils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/applications/components/utils.tsx b/ui/src/app/applications/components/utils.tsx index 1e6511bc1bf1a..9e27b078dcb06 100644 --- a/ui/src/app/applications/components/utils.tsx +++ b/ui/src/app/applications/components/utils.tsx @@ -1564,7 +1564,7 @@ export const userMsgsList: {[key: string]: string} = { export function getAppUrl(app: appModels.Application): string { if (typeof app.metadata.namespace === 'undefined') { - return `/applications/${app.metadata.name}`; + return `applications/${app.metadata.name}`; } - return `/applications/${app.metadata.namespace}/${app.metadata.name}`; + return `applications/${app.metadata.namespace}/${app.metadata.name}`; }