Skip to content

Commit 080a779

Browse files
committed
Redirect template
1 parent c791d85 commit 080a779

File tree

13 files changed

+42
-84
lines changed

13 files changed

+42
-84
lines changed

site/_core/Redirect.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2015, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
var React = require('react');
10+
11+
export default ({ to }) =>
12+
<html>
13+
<head>
14+
<meta charset="UTF-8" />
15+
<meta http-equiv="refresh" content={'1;url=' + to} />
16+
<script dangerouslySetInnerHTML={{__html: `
17+
window.location.href = "${to}"
18+
`}} />
19+
<title>GraphQL Page Redirection</title>
20+
</head>
21+
<body>
22+
If you are not redirected automatically, <a href={to}>follow this link</a>.
23+
</body>
24+
</html>

site/docs/getting-started/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/learn" />

site/docs/intro/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/docs/intro/index.html.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/learn" />

site/docs/queries/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/docs/queries/index.html.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/learn/queries/" />

site/docs/typesystem/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/docs/typesystem/index.html.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/learn/schema/" />

site/docs/videos/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/docs/videos/index.html.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../_core/Redirect')
3+
export default () => <Redirect to="/community/#videos" />

site/help/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/help/index.html.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/getting-started/" />

0 commit comments

Comments
 (0)