1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Merge pull request #29953 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2023-11-14 11:01:55 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ topics:
## Prerequisites
To follow {% data variables.product.prodname_dotcom %} flow, you will need a {% data variables.product.prodname_dotcom %} account and a repository. For information on how to create an account, see "[AUTOTITLE](/get-started/signing-up-for-github)." For information on how to create a repository, see "[AUTOTITLE](/get-started/quickstart/create-a-repo)."{% ifversion fpt or ghec %} For information on how to find an existing repository to contribute to, see "[AUTOTITLE](/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)."{% endif %}
To follow {% data variables.product.prodname_dotcom %} flow, you will need a {% data variables.product.prodname_dotcom %} account and a repository. {% ifversion not ghae %}For information on how to create an account, see "[AUTOTITLE](/get-started/signing-up-for-github)."{% endif %} For information on how to create a repository, see "[AUTOTITLE](/get-started/quickstart/create-a-repo)."{% ifversion fpt or ghec %} For information on how to find an existing repository to contribute to, see "[AUTOTITLE](/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)."{% endif %}
## Following {% data variables.product.prodname_dotcom %} flow

View File

@@ -112,7 +112,7 @@ export default async function archivedEnterpriseVersions(req, res, next) {
})
const [language, withoutLanguage] = splitPathByLanguage(req.path, req.context.userLanguage)
const newRedirectTo = redirectJson[withoutLanguage]
if (newRedirectTo) {
if (newRedirectTo && newRedirectTo !== withoutLanguage) {
if (redirectCode === 302) {
languageCacheControl(res) // call first to get `vary`
}