Add Grizzlyflix newsletters with curated editions and weekly delivery
This commit is contained in:
@@ -71,7 +71,7 @@ export default function LoginPage() {
|
||||
if (!data?.authenticated) { setError('Could not sign in. Please try again.'); return }
|
||||
setToken('cookie')
|
||||
const next = new URLSearchParams(window.location.search).get('next') || ''
|
||||
const allowedNext = ['/insights', '/insights/reports', '/profile', '/profile#monthly-recaps', '/admin/recaps'].includes(next)
|
||||
const allowedNext = ['/insights', '/insights/reports', '/profile', '/profile#monthly-recaps', '/profile#newsletters', '/admin/recaps', '/admin/newsletters'].includes(next)
|
||||
|| /^\/insights\/reports\?month=[0-9]{4}-(?:0[1-9]|1[0-2])$/.test(next)
|
||||
|| /^\/issues\/confirm\/\d+$/.test(next)
|
||||
window.location.assign(allowedNext ? next : '/welcome')
|
||||
|
||||
Reference in New Issue
Block a user