Skip to content

Commit

Permalink
refactor: create a redirect for the discord link from /dicord and use…
Browse files Browse the repository at this point in the history
… on site
  • Loading branch information
moonmeister committed May 10, 2024
1 parent 31de6c1 commit e2c2685
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion redirects.json
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
[]
[
{
"source": "/discord",
"destination": "https://discord.gg/AGVBqqyaUY",
"permanent": true
}
]
2 changes: 1 addition & 1 deletion src/data/social.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const socialFooterLinks = [
},
{
name: "Discord",
href: "https://discord.gg/AGVBqqyaUY",
href: "/discord",
icon: SiDiscord,
},
]
2 changes: 1 addition & 1 deletion src/pages/acf.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function Pricing() {
handled through <a href="https://github.com/wp-graphql/wp-graphql-acf/issues" rel="noreferrer"
target="_blank">issues</a>. For general questions about the plugin,
visit the <a
href="https://discord.gg/AGVBqqyaUY">WPGraphQL
href="/discord">WPGraphQL
Discord</a>.
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/community.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Community() {
{
name: "Discord",
description: "The WPGraphQL Discord is a great place to communicate in real-time. Ask questions, discuss features, get to know other folks using WPGraphQL.",
link: "https://discord.gg/AGVBqqyaUY",
link: "/discord",
icon: FaDiscord,
},
{
Expand Down

0 comments on commit e2c2685

Please sign in to comment.