Merge pull request #149 from ericnakagawa/noop-redirect

Removed copy from redirect page, reduced delay to 0s for js and meta
This commit is contained in:
Eric Nakagawa 2017-10-19 13:20:07 -07:00 committed by GitHub
commit 22d0cebc18
3 changed files with 3 additions and 9 deletions

View file

@ -40,7 +40,7 @@ class Head extends React.Component {
{this.props.redirect && (
<meta
http-equiv="refresh"
content={"2; URL=" + this.props.redirect}
content={"0; URL=" + this.props.redirect}
/>
)}
<link

View file

@ -45,17 +45,11 @@ class Redirect extends React.Component {
redirect={redirect}
/>
<body className={this.props.className}>
The page you are looking for has moved. If you are not redirected to
the new page in three seconds, then you can navigate to the new page
by using <a href={this.props.redirect}>this link</a>.
<script
dangerouslySetInnerHTML={{
__html: `
<!--
window.setTimeout(
function(){window.location.href = "${this.props
.redirect}"},3000
);
window.location.href = "${this.props.redirect}";
// -->
`
}}