Skip to content

Commit

Permalink
Fix application url for custom base href (#21377)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Oren <[email protected]>
  • Loading branch information
amit-o authored Jan 16, 2025
1 parent 742d45a commit 3f0a155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/applications/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}

0 comments on commit 3f0a155

Please sign in to comment.