Skip to content

Commit 30f0533

Browse files
authored
Merge pull request #293 from Language-Mapping/292.update-wp-links
2 parents c0b3fcc + 48c2011 commit 30f0533

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/about/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { WpQueryKeys } from './types'
22

33
export const WP_API_PAGES_ENDPOINT =
4-
'https://languagemapping.org/wp-json/wp/v2/pages'
4+
'https://content.endangeredlanguagealliance.org/wp-json/wp/v2/pages'
55

66
export const wpQueryIDs = {
7-
about: 203,
8-
help: 209,
7+
about: 9461,
8+
help: 9518,
99
} as { [key in WpQueryKeys]: number }
1010

1111
export const HIDE_WELCOME_LOCAL_STG_KEY = 'hideWelcome'

src/components/about/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { WP_API_PAGES_ENDPOINT } from './config'
44
// Define a default query function that will receive the query key
55
export const defaultQueryFn = async <T extends unknown>(
66
key: number
7-
): Promise<T> => (await fetch(`${WP_API_PAGES_ENDPOINT}/${key}`)).json()
7+
): Promise<T> =>
8+
// `password` is part of a hack to attempt to exclude/filter NYC Map pages
9+
// from the ELA website's NextJS builds. It is not intended for security, so
10+
// it's safe to commit.
11+
(await fetch(`${WP_API_PAGES_ENDPOINT}/${key}?password=1234`)).json()
812

913
// Provide the default query function to your app with defaultConfig
1014
export const wpQueryCache = new QueryCache({

src/components/nav/Nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const Nav: FC = () => {
103103
<ListItem button dense disableGutters>
104104
<Link
105105
underline="none"
106-
href="https://languagemapping.org/wp-content/uploads/2021/03/Help-Video-Script.pdf"
106+
href="https://content.endangeredlanguagealliance.org/wp-content/uploads/2022/12/User-Manual.pdf"
107107
target="_blank"
108108
className={listLink}
109109
>

0 commit comments

Comments
 (0)