Reloading paginated page 404s after deleting all branches on said page (BB-12655)

Issue #11074 duplicate
Bas Tuijnman
created an issue

Hi bitbucket team,

I was cleaning up some branches on our private repo today and because there were a lot of open (unused, we've been bad and not been closing after PR's) branches, I had multiple pages.

When I finished deleting the last branch on page 2 the page tried to reload, resulting in a 404, because there weren't enough branches anymore to justify a second page.

It's just a minor thing, but I thought that maybe it was nice to report.

Kind regards,

Bas Tuijnman