Skip to content

Commit 7a7cb6c

Browse files
vdyedscho
authored andcommitted
Add 'Downloads' page aliases
On the old site, '<home>/download' would render the '<home>/downloads' page, so add a symlink from 'download/index.html' to 'downloads/index.html'. Additionally, add explicit OS aliases for the '<home>/download/gui/<os>' pages to allow direct OS filter links to work. The 'application.js' OS filtering functionality handles filtering the page content based on the URL already, so there's no noticeable change to the functionality. Note that, because we cannot do custom routing, '<home>/download/gui/<invalid value>' will no longer render the unfiltered GUI page, instead routing the user to a 404. Signed-off-by: Victoria Dye <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b8be2ce commit 7a7cb6c

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed

content/download/_index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_to: downloads
3+
---

content/download/gui/_index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_to: downloads/guis
3+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
redirect_to: downloads/guis?os=android
3+
aliases:
4+
- /download/gui/android
5+
---

content/downloads/guis/ios.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
redirect_to: downloads/guis?os=ios
3+
aliases:
4+
- /download/gui/ios
5+
---
6+
7+

content/downloads/guis/linux.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
redirect_to: downloads/guis?os=linux
3+
aliases:
4+
- /download/gui/linux
5+
---
6+

content/downloads/guis/mac.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
redirect_to: downloads/guis?os=mac
3+
aliases:
4+
- /download/gui/mac
5+
---
6+
7+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
redirect_to: downloads/guis?os=windows
3+
aliases:
4+
- /download/gui/windows
5+
---
6+
7+

0 commit comments

Comments
 (0)