Skip to content

Commit 832b28a

Browse files
authored
Fix redirects (#521)
1 parent 619e904 commit 832b28a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

nginx.conf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ http {
6565
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/query-the-graph/$ $scheme://$http_host/docs/$1/querying/querying-the-graph/ permanent;
6666
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/querying-best-practices/$ $scheme://$http_host/docs/$1/querying/querying-best-practices/ permanent;
6767
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/querying-from-your-app/$ $scheme://$http_host/docs/$1/querying/querying-from-an-application/ permanent;
68-
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/quick-start/$ $scheme://$http_host/docs/$1/cookbook/quick-start/ permanent;
68+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/quick-start/$ $scheme://$http_host/docs/$1/quick-start/ permanent;
6969
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/subgraph-debug-forking/$ $scheme://$http_host/docs/$1/cookbook/subgraph-debug-forking/ permanent;
7070
rewrite ^/docs/([a-zA-Z][a-zA-Z])/explorer/$ $scheme://$http_host/docs/$1/network/explorer/ permanent;
7171
rewrite ^/docs/([a-zA-Z][a-zA-Z])/hosted-service/deploy-subgraph-hosted/$ $scheme://$http_host/docs/$1/deploying/deploying-a-subgraph-to-hosted/ permanent;
@@ -87,9 +87,8 @@ http {
8787
rewrite ^/docs/([a-zA-Z][a-zA-Z])/arbitrum-faq/$ $scheme://$http_host/docs/$1/arbitrum/arbitrum-faq/ permanent;
8888
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/migrating-a-subgraph/$ $scheme://$http_host/docs/$1/cookbook/upgrading-a-subgraph/ permanent;
8989
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/quick-start/$ $scheme://$http_host/docs/$1/quick-start/ permanent;
90-
rewrite ^/docs/en/substreams/(.+)$ https://substreams.streamingfast.io permanent;
91-
rewrite ^/docs/en/firehose/(.+)$ https://firehose.streamingfast.io permanent;
92-
90+
rewrite ^/docs/en/substreams/(?!index\.).+$ https://substreams.streamingfast.io permanent;
91+
rewrite ^/docs/en/firehose/(?!index\.).+$ https://firehose.streamingfast.io permanent;
9392

9493
# Temporary redirects (302)
9594
rewrite ^/docs/en/querying/graph-client/$ $scheme://$http_host/docs/en/querying/graph-client/README/ redirect;

website/pages/en/cookbook/near.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Pending functionality is not yet supported for NEAR subgraphs. In the interim, y
277277

278278
### My question hasn't been answered, where can I get more help building NEAR subgraphs?
279279

280-
If it is a general question about subgraph development, there is a lot more information in the rest of the [Developer documentation](/cookbook/quick-start). Otherwise please join [The Graph Protocol Discord](https://discord.gg/graphprotocol) and ask in the #near channel or email [email protected].
280+
If it is a general question about subgraph development, there is a lot more information in the rest of the [Developer documentation](/quick-start). Otherwise please join [The Graph Protocol Discord](https://discord.gg/graphprotocol) and ask in the #near channel or email [email protected].
281281

282282
## References
283283

website/src/IndexPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function Intro() {
2727
{
2828
title: t('index.shortcuts.quickStart.title'),
2929
description: t('index.shortcuts.quickStart.description'),
30-
href: '/cookbook/quick-start',
30+
href: '/quick-start',
3131
},
3232
{
3333
title: t('index.shortcuts.developerFaqs.title'),
@@ -47,7 +47,7 @@ export function Intro() {
4747
{
4848
title: t('index.shortcuts.migrateFromHostedService.title'),
4949
description: t('index.shortcuts.migrateFromHostedService.description'),
50-
href: '/cookbook/migrating-a-subgraph',
50+
href: '/cookbook/upgrading-a-subgraph',
5151
},
5252
].map((card) => (
5353
<li key={card.href} sx={{ aspectRatio: '258/136' }}>

0 commit comments

Comments
 (0)