Skip to content

Commit 6c54dab

Browse files
query redirect links (#526)
1 parent 01bd25d commit 6c54dab

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

src/libraries/maintainers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export const allMaintainers: Maintainer[] = [
424424
social: {
425425
twitter: 'https://x.com/beaussan',
426426
bluesky: 'https://bsky.app/profile/beaussan.io',
427-
website: 'https://beaussan.io/'
427+
website: 'https://beaussan.io/',
428428
},
429429
},
430430
]

src/libraries/query.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ export const queryProject = {
4848
'/query/v5',
4949
'from=reactQueryV3'
5050
)
51+
52+
handleRedirects(
53+
queryCommunityLinks,
54+
href,
55+
'/query/latest',
56+
'/query/latest',
57+
'from=communityLinks'
58+
)
5159
},
5260
menu: [
5361
{
@@ -239,3 +247,38 @@ const reactQueryV3RemovedInV5List = [
239247
{from: "plugins/createWebStoragePersister", to: "docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"},
240248
{from: "plugins/createAsyncStoragePersister", to: "docs/framework/react/guides/migrating-to-react-query-4#persistqueryclient-and-the-corresponding-persister-plugins-are-no-longer-experimental-and-have-been-renamed"},
241249
]
250+
251+
/*
252+
Community resources section to new location
253+
*/
254+
// prettier-ignore
255+
const queryCommunityLinks = [
256+
{
257+
from: 'docs/framework/react/community/tkdodos-blog',
258+
to: 'docs/community-resources',
259+
},
260+
{
261+
from: 'docs/framework/react/community/community-projects',
262+
to: 'docs/community-resources',
263+
},
264+
{
265+
from: 'docs/framework/solid/community/tkdodos-blog',
266+
to: 'docs/community-resources',
267+
},
268+
{
269+
from: 'docs/framework/solid/community/community-projects',
270+
to: 'docs/community-resources',
271+
},
272+
{
273+
from: 'docs/framework/vue/community/tkdodos-blog',
274+
to: 'docs/community-resources',
275+
},
276+
{
277+
from: 'docs/framework/vue/community/community-projects',
278+
to: 'docs/community-resources',
279+
},
280+
{
281+
from: 'docs/framework/react/videos',
282+
to: 'docs/community-resources',
283+
},
284+
]

0 commit comments

Comments
 (0)