From 20e9ac818cc918606808742fecdb9596de102496 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Wed, 20 Sep 2023 15:07:54 +0200 Subject: [PATCH] Add `/download/4.x` redirects for the current download page This also adjusts the format for redirects to make sure pages are always generated as `/index.html`. This happens when the redirect link ends with a slash, no explicit declaration needed. So I adjusted existing rules to use that as well. --- _config.yml | 2 +- collections/_download/android.md | 3 +++ collections/_download/linux.md | 3 +++ collections/_download/macos.md | 3 ++- collections/_download/windows.md | 3 +++ collections/_download_3/server.md | 2 +- pages/blog/blog.html | 9 +++++---- pages/contact.html | 2 +- pages/download.html | 3 +++ 9 files changed, 22 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index dd2668ae88..249c5e0cd2 100644 --- a/_config.yml +++ b/_config.yml @@ -25,7 +25,7 @@ collections: output: true download_3: output: true - permalink: /download/3.x/:name/index.html + permalink: /download/3.x/:name/ # Build collection items with a future date. future: true diff --git a/collections/_download/android.md b/collections/_download/android.md index a966987841..c66a57a7e1 100644 --- a/collections/_download/android.md +++ b/collections/_download/android.md @@ -16,6 +16,9 @@ downloads: ignore_export: true ignore_mono: true +redirect_from: + - /download/4.x/android/ + content_note: |

Note: C# support is not available in the Android editor. diff --git a/collections/_download/linux.md b/collections/_download/linux.md index 72ef746893..6f7ef597f1 100644 --- a/collections/_download/linux.md +++ b/collections/_download/linux.md @@ -17,6 +17,9 @@ downloads: - platform: "linux.32" mono: true +redirect_from: + - /download/4.x/linux/ + content_instructions: |