Redirecting inside a page in Fresh 2.0
Is returning a redirect response like this not working in Fresh 2.0 anymore?
Also,
ctx.redirect
is undefined
so it's likely not implemented yet I believe?2 Replies
1. Returning a
Response
instance is perfectly valid an should work.
2. ctx.redirect
should work as well and isn't undefined
. How are you accessing it?This works
This (attached) doesnt. And
ctx.redirect
is undefined inside the define.page