Feature: redirect to root when path does not exist on branch (blame and blob views)
Problem to solve
If viewing the blob or blame of a file, users are redirected to an unhelpful 404 page if they try to switch to a branch where their current path does not exist.
With this feature change, users would be redirected to the root of the repository.
After a recent change, this is the current behavior when viewing a file's history. This change would create a consistent user experience across the history, blame, and blob views.
I have submitted MR !18169 (merged) to implement this feature.
Intended users
This would apply to all users that interact with repositories.
Further details
The following screen captures illustrate what the new behavior would look like for each particular view.
Blobs
before | after |
---|---|
blob_before | blob_after |
Blame
before | after |
---|---|
blame_before | blame_after |
History
current behavior |
---|
history_current |
Proposal
I have submitted MR !18169 (merged) to implement this feature.
Edited by Jesse Hall