Skip to content

Commit

Permalink
Fix application url for custom base href (argoproj#21377)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Oren <[email protected]>
Signed-off-by: Brett C. Dudo <[email protected]>
  • Loading branch information
amit-o authored and dudo committed Jan 18, 2025
1 parent 392d0b1 commit 53ff916
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 53ff916

Please sign in to comment.