Skip to content

Commit ba480d6

Browse files
authored
Merge pull request #140 from OpenTechSchool/132-fix-foundation-redirect
Fix redirect for /foundation
2 parents 1a250fa + 15b85b1 commit ba480d6

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

now.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
2+
"version": 2,
23
"trailingSlash": false,
34
"redirects": [
4-
{ "source": "/about\\.html", "destination": "/about" },
5-
{ "source": "/foundation/", "destination": "/about#foundation" },
6-
{ "source": "/team\\.html", "destination": "/about" },
7-
{ "source": "/press\\.html", "destination": "/about" },
8-
{ "source": "/contact\\.html", "destination": "/#get-in-touch" },
9-
{ "source": "/sponsors\\.html", "destination": "/contribute#supporter" },
10-
{ "source": "/imprint\\.html", "destination": "/imprint" },
11-
{ "source": "/material\\.html", "destination": "https://learn.opentechschool.org/" },
5+
{ "source": "/about.html", "destination": "/about" },
6+
{ "source": "/team.html", "destination": "/about" },
7+
{ "source": "/press.html", "destination": "/about" },
8+
{ "source": "/contact.html", "destination": "/#get-in-touch" },
9+
{ "source": "/sponsors.html", "destination": "/contribute#supporter" },
10+
{ "source": "/imprint.html", "destination": "/imprint" },
11+
{ "source": "/material.html", "destination": "https://learn.opentechschool.org/" },
1212
{ "source": "/berlin", "destination": "/cities/berlin" },
1313
{ "source": "/leipzig", "destination": "/cities/leipzig" },
1414
{ "source": "/zurich", "destination": "/cities/zurich" },
1515
{ "source": "/brussels", "destination": "/cities/brussels" },
1616
{ "source": "/bristol", "destination": "/cities/bristol" },
1717
{ "source": "/romagna", "destination": "/cities/romagna" },
18+
{ "source": "/foundation", "destination": "/about#foundation" },
19+
{ "source": "/foundation/archive/aktuelle-Satzung.pdf", "destination": "/files/foundation/aktuelle-Satzung.pdf" },
1820
{ "source": "/handbooks/(.*)", "destination": "/guides" }
1921
]
2022
}

pages/about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const About: NextPage = () => {
130130
<p>
131131
{t('about.foundation.membership.agree')}{' '}
132132
<a
133-
href='/foundation/archive/aktuelle-Satzung.pdf'
133+
href='/files/foundation/aktuelle-Satzung.pdf'
134134
target='_blank'
135135
rel='noopener noreferrer'
136136
>

0 commit comments

Comments
 (0)