Skip to content

Commit

Permalink
Fix application url for custom base href
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Oren <[email protected]>
  • Loading branch information
amit-o committed Jan 5, 2025
1 parent e66068c commit 1f88a85
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 1f88a85

Please sign in to comment.