Skip to content

Commit

Permalink
Fix redirects (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
benface authored Sep 28, 2023
1 parent 619e904 commit 832b28a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ http {
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/query-the-graph/$ $scheme://$http_host/docs/$1/querying/querying-the-graph/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/querying-best-practices/$ $scheme://$http_host/docs/$1/querying/querying-best-practices/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/querying-from-your-app/$ $scheme://$http_host/docs/$1/querying/querying-from-an-application/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/quick-start/$ $scheme://$http_host/docs/$1/cookbook/quick-start/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/quick-start/$ $scheme://$http_host/docs/$1/quick-start/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/subgraph-debug-forking/$ $scheme://$http_host/docs/$1/cookbook/subgraph-debug-forking/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/explorer/$ $scheme://$http_host/docs/$1/network/explorer/ permanent;
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;
Expand All @@ -87,9 +87,8 @@ http {
rewrite ^/docs/([a-zA-Z][a-zA-Z])/arbitrum-faq/$ $scheme://$http_host/docs/$1/arbitrum/arbitrum-faq/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/migrating-a-subgraph/$ $scheme://$http_host/docs/$1/cookbook/upgrading-a-subgraph/ permanent;
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/quick-start/$ $scheme://$http_host/docs/$1/quick-start/ permanent;
rewrite ^/docs/en/substreams/(.+)$ https://substreams.streamingfast.io permanent;
rewrite ^/docs/en/firehose/(.+)$ https://firehose.streamingfast.io permanent;

rewrite ^/docs/en/substreams/(?!index\.).+$ https://substreams.streamingfast.io permanent;
rewrite ^/docs/en/firehose/(?!index\.).+$ https://firehose.streamingfast.io permanent;

# Temporary redirects (302)
rewrite ^/docs/en/querying/graph-client/$ $scheme://$http_host/docs/en/querying/graph-client/README/ redirect;
Expand Down
2 changes: 1 addition & 1 deletion website/pages/en/cookbook/near.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Pending functionality is not yet supported for NEAR subgraphs. In the interim, y

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

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].
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].

## References

Expand Down
4 changes: 2 additions & 2 deletions website/src/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function Intro() {
{
title: t('index.shortcuts.quickStart.title'),
description: t('index.shortcuts.quickStart.description'),
href: '/cookbook/quick-start',
href: '/quick-start',
},
{
title: t('index.shortcuts.developerFaqs.title'),
Expand All @@ -47,7 +47,7 @@ export function Intro() {
{
title: t('index.shortcuts.migrateFromHostedService.title'),
description: t('index.shortcuts.migrateFromHostedService.description'),
href: '/cookbook/migrating-a-subgraph',
href: '/cookbook/upgrading-a-subgraph',
},
].map((card) => (
<li key={card.href} sx={{ aspectRatio: '258/136' }}>
Expand Down

0 comments on commit 832b28a

Please sign in to comment.