File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { useEffect } from 'react'
2+ import Head from 'next/head'
3+
4+ export default function Redirect ( { to } ) {
5+ useEffect ( ( ) => {
6+ window . location . href = to
7+ } , [ to ] )
8+
9+ return (
10+ < >
11+ < Head >
12+ < meta httpEquiv = 'refresh' content = { `0;url=${ to } ` } />
13+ </ Head >
14+ < div style = { { padding : '20px' , textAlign : 'center' } } >
15+ < p >
16+ Redirecting to < a href = { to } > { to } </ a > ...
17+ </ p >
18+ </ div >
19+ </ >
20+ )
21+ }
Original file line number Diff line number Diff line change 1+ import Redirect from '@/components/redirect'
2+
3+ export default function WadenDriftersRedirect ( ) {
4+ return < Redirect to = '/blog/waddendrifters' />
5+ }
Original file line number Diff line number Diff line change 1+ import Redirect from '@/components/redirect'
2+
3+ export default function WadenDriftersRedirect ( ) {
4+ return < Redirect to = '/blog/waddendrifters' />
5+ }
You can’t perform that action at this time.
0 commit comments