Skip to content

Commit e077f1d

Browse files
committed
redirects
1 parent dac03c6 commit e077f1d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

website/next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ export default withLess(
106106
"/blog/2022-11-07-graphql-foundation-graphql-http":
107107
"/blog/2022-11-07-graphql-http",
108108
"/community/(project-resources|developers|users)":
109-
"/community/contribute",
109+
"/community/contribute/essential-links",
110110
"/community": "/community/resources/official-channels",
111111
"/community/upcoming-events": "/community/events",
112+
"/community/contribute": "/community/contribute/essential-links",
112113
}).map(([from, to]) => ({
113114
source: from,
114115
destination: to,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
22
resources: "Community Resources",
33
events: "",
4+
contribute: 'Contribute to GraphQL'
45
}

website/src/pages/community/contribute.mdx

Lines changed: 0 additions & 6 deletions
This file was deleted.

website/theme.config.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,18 @@ export default {
196196
const { frontMatter } = useConfig()
197197
let { asPath } = useRouter()
198198

199-
if (asPath.startsWith("/community/resources/")) {
200-
asPath = "/community/"
201-
}
199+
if (asPath.startsWith("/community/resources/")) asPath = "/community/"
200+
if (asPath.startsWith("/community/contribute/")) asPath = "/community/contribute/"
202201
if (asPath === "/community/") {
203202
frontMatter.title = "Community Resources"
204203
frontMatter.description =
205204
"The GraphQL community is worldwide, and includes developers, users, supporters, and fans from around the globe. You are welcome to join us! If you're new to the community, here are a few things to get you started."
206205
}
206+
if (asPath === "/community/contribute/") {
207+
frontMatter.title = 'Contribute to GraphQL'
208+
frontMatter.description = 'The following resources describe how GraphQL development processes work, how to get involved, and where to get help.'
209+
}
210+
207211
return (
208212
<>
209213
<Navbar {...props} />

0 commit comments

Comments
 (0)