screwdriver
screwdriver copied to clipboard
Redirect to non-exist build page to pipeline page after 404 page
What happened: When visit a non existing build, such as https://cd.screwdriver.cd/pipelines/1/builds/7877218474123123 If the build number does not exist, UI shows 404.
What you expected to happen: Instead of going to 404 page, we will show build not found as notification banner, and redirect user back to their intended pipeline url, such as https://cd.screwdriver.cd/pipelines/1
Similar to

~If the build number does not exist, make UI redirect the user to the pipeline page after 404 page, because that's what users often do. They go to that pipeline page and explore what's going on.~
How to reproduce it: Go to any non exist build, such as https://cd.screwdriver.cd/pipelines/1/builds/7877218474123123