Add correct type filters when redirects /issues url

MR: Fix issues page redirect param (!211911 - merged)

As a part of Redirect from issues and epics route to work it... (#513115 - closed), we added ?type=issue filter when accessing issues list to be redirected to work items list.

This would lead to regression for all use cases where the user wants to see current issues, tasks and incidents as on prod.

According to the latest discussion on slack,

Expectation

redirecting /epics with type=epic and redirecting /issues with type!=epic to match user expectations

Used slack AI for summarizing

Deepika raised a question about the intended redirect from the /issues page to the /work_items page with the type=issue parameter, and whether there are plans to add the work items URL to the metadata API.

Edited by Daniyal Arshad