Skip to content

Commit e2c2685

Browse files
committed
refactor: create a redirect for the discord link from /dicord and use on site
1 parent 31de6c1 commit e2c2685

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

redirects.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
[]
1+
[
2+
{
3+
"source": "/discord",
4+
"destination": "https://discord.gg/AGVBqqyaUY",
5+
"permanent": true
6+
}
7+
]

src/data/social.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const socialFooterLinks = [
3535
},
3636
{
3737
name: "Discord",
38-
href: "https://discord.gg/AGVBqqyaUY",
38+
href: "/discord",
3939
icon: SiDiscord,
4040
},
4141
]

src/pages/acf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function Pricing() {
241241
handled through <a href="https://github.com/wp-graphql/wp-graphql-acf/issues" rel="noreferrer"
242242
target="_blank">issues</a>. For general questions about the plugin,
243243
visit the <a
244-
href="https://discord.gg/AGVBqqyaUY">WPGraphQL
244+
href="/discord">WPGraphQL
245245
Discord</a>.
246246
</p>
247247
</div>

src/pages/community.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Community() {
2323
{
2424
name: "Discord",
2525
description: "The WPGraphQL Discord is a great place to communicate in real-time. Ask questions, discuss features, get to know other folks using WPGraphQL.",
26-
link: "https://discord.gg/AGVBqqyaUY",
26+
link: "/discord",
2727
icon: FaDiscord,
2828
},
2929
{

0 commit comments

Comments
 (0)