# Bug DREAM-704 - Tree view selection based on path identity breaks use cases where similar paths are allowed

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-704

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system |
| Target versions | 17.6.0 |
| Observed in versions | 17.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a tree view with paths that are identical, e.g. for wiki page representation:
    

```text
Wiki
  Welcome
  How to manage this project
Wiki
  Welcome
  How to manage this project
```

1.  set select variant to `:single`&nbsp;
    
2.  select the any duplicate item shown later in the tree
    

### What is the buggy behavior?

*   The first item in the tree with an identical path is selected instead of the clicked one
    
*   see attached video
    

### What is the expected behavior?

1.  The item that is clicked is selected
    

### Important note

There are use cases with wiki page selection, where the path as an identifier is no longer usable. Root wiki nodes may have the same name, and even within the same wiki hierarchy level, the wiki does not forbid giving two pages the same title.

###
