# Links to deleted branches now redirect to the default branch

DevFeed: [Links to deleted branches now redirect to the default branch](<https://devfeed.tech/articles/links-to-deleted-branches-now-redirect-to-the-default-branch-74663.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2020-07-17-links-to-deleted-branches-now-redirect-to-the-default-branch>)

Author: phanatic

Published: 2020-07-17T18:21:50Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [deeplinks](<https://devfeed.tech/topics/deeplinks.md>)

Tags: [branch](<https://devfeed.tech/tags/branch.md>), [email](<https://devfeed.tech/tags/email.md>), [github](<https://devfeed.tech/tags/github.md>), [integrations](<https://devfeed.tech/tags/integrations.md>), [links](<https://devfeed.tech/tags/links.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [slack](<https://devfeed.tech/tags/slack.md>), [stackoverflow](<https://devfeed.tech/tags/stackoverflow.md>)

## AI overview

GitHub initially redirected view links to deleted branches to the repository's default branch; edit and blame links were excluded. The announcement described this as part of support for default-branch renaming. An update dated February 7, 2023 says GitHub removed the behavior because it conflicted with other URL patterns: renamed branches still redirect, but deleted branches do not.

## Source excerpt

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...