@@ -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
|
||||
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user