Merge pull request #19529 from antobinary/trailingSlashes

docs: enable trailingSlashes (2) and handle redirects
This commit is contained in:
Anton Georgiev 2024-01-26 12:15:12 -05:00 committed by GitHub
commit 384fb8e37b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,23 +67,23 @@ const config = {
fromExtensions: ['html', 'htm'], fromExtensions: ['html', 'htm'],
redirects: [ redirects: [
{ {
to: "/2.6/new-features", to: "/2.6/new-features/",
from: "/2.6/new" from: "/2.6/new/"
}, },
{ {
to: "/2.6/new-features", to: "/2.6/new-features/",
from: "/2.6/new.html" from: "/2.6/new.html"
}, },
{ {
to: "/new-features", to: "/new-features/",
from: "/2.7/new-features" from: "/2.7/new-features/"
}, },
{ {
to: "/development/api", to: "/development/api/",
from: "/dev/api.html" from: "/dev/api.html"
}, },
{ {
to: "/greenlight/v3/migration", to: "/greenlight/v3/migration/",
from: "/greenlight_v3/gl3-migration.html" from: "/greenlight_v3/gl3-migration.html"
} }
], ],