Previously, when branches were deleted on GitHub, any links that contained the old branch name broke across StackOverflow, email, Slack and other integrations.

Links to deleted branches now redirect to the default branch. So, for example, the link will now redirect to an equivalent link on the default branch: This change only affects view links; other types of links (like edit links and blame links) don't redirect.

This change is the first of many changes GitHub is making to support projects and maintainers that want to rename their default branch. To learn more about the changes we're making, see github/renaming.