Redirect to top cowboys page if there's a time descriptor (#1913)
* redirect to cowboys.js if there's a time descriptor * add comment for future reference --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
This commit is contained in:
parent
dfc297436b
commit
5e7fd693f1
@ -189,6 +189,11 @@ module.exports = withPlausibleProxy()({
|
||||
source: '/statistics',
|
||||
destination: '/satistics?inc=invoice,withdrawal',
|
||||
permanent: true
|
||||
},
|
||||
{
|
||||
source: '/top/cowboys/:when',
|
||||
destination: '/top/cowboys',
|
||||
permanent: true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -6,6 +6,7 @@ import UserList from '@/components/user-list'
|
||||
|
||||
export const getServerSideProps = getGetServerSideProps({ query: TOP_COWBOYS })
|
||||
|
||||
// if a when descriptor is provided, it redirects here; see next.config.js
|
||||
export default function Index ({ ssrData }) {
|
||||
return (
|
||||
<Layout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user