# Bug OP-20783 - Deleting a variant always redirects to the index page

Project: OpenProject
Status: needs review
URL: https://community.openproject.org/work_packages/OP-20783

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Type/Variants and Workflows |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Mir Bhatia |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Go to a variants tab of a type
    
2.  Delete a variant
    
3.  Confirm
    

### What is the buggy behavior?

*   You&#x27;re back on the index page, the type collapsed. see attached video
    

### What is the expected behavior?

1.  When deleting a variant from any of the three following places, you stay on the respective source page
    
    1.  Global types admin page
        
    2.  Project types page
        
    3.  Variants tab of a type
        
2.  The type/section container stays uncollapsed
    
3.  Filters are kept, if applicable
    

###
