Skip to content

Commit

Permalink
Merge pull request #47 from wp-graphql/discord-link
Browse files Browse the repository at this point in the history
refactor: create a redirect for the discord link from /discord and use on site
  • Loading branch information
jasonbahl authored May 10, 2024
2 parents 31de6c1 + 89d319a commit 43e717d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 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,
},
]
7 changes: 4 additions & 3 deletions src/pages/acf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SiteLayout from "../components/Site/SiteLayout";
import Image from 'next/image'
import {Disclosure} from "@headlessui/react";
import {ChevronUpIcon} from "@heroicons/react/20/solid";
import Link from "next/link";

const GET_NAV_MENU = gql`
query GetNavMenu {
Expand Down Expand Up @@ -240,9 +241,9 @@ function Pricing() {
feature requests are
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
Discord</a>.
visit the <Link
href="/discord">WPGraphQL
Discord</Link>.
</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

1 comment on commit 43e717d

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Atlas environment:

App Environment URL Build
wpgraphql.com master https://h2…wered.com ✅ (logs)

Learn more about building on Atlas in our documentation.

Please sign in to comment.