Skip to content

Applications search return duplicate or misleading results when several applications with the same name in different namespaces #28681

Description

@poilade-de-coulemelle

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

From the UI, inside an ArgoCD Application, when searching for an application, and if another application with the same name exists in another namespace, duplicated results are returned.

For instance, I have an ArgoCD application called app-1 in namespace namespace-1 and in namespace namespace-2, the results appearing in the search box will be:

  • app-1 (current)
  • app-1 (current)

This behavior does not happen when searching from the homepage (cad https://[argocd-url]/applications. Instead applications are prefixed by namespace name cad

  • namespace-1/app-1
  • namespace-2/app-1

To Reproduce

  • Create namespace namespace-1 and namespace-2
  • Enabled ArgoCD to check Application in namespace namespace-1 and namespace-2
  • Create an application called app-1 in namespace-1 and namespace-2
  • Login to ArgoCD
  • Click on any application For instance namespace/app-1
  • Search for app-1 in the search box

Expected behavior

I guess there is two possible behaviors expected

  1. Only the application inside the same namespace of the application the user is currently located is returned
  2. all application are returned but prefixed by namespace

Personally, I would prefer the second option
Screenshots

Image Image

Version

argocd: v3.4.3
  BuildDate: 2026-05-28T11:38:55Z
  GitCommit: 1801122b4391cad4961301f787006dc9a88c2dd3
  GitTreeState: clean
  GitTag: v3.4.3
  GoVersion: go1.26.0
  Compiler: gc
  Platform: linux/amd64

Metadata

Metadata

Labels

bugSomething isn't workingbug/priority:lowCosmetic bug or minor annoyance with no real impact on functionality.component:uiUser interfaces bugs and enhancementsfeature:apps-in-any-namespaceIssues related to the "Apps in any namespace" feature introduced in 2.5

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions