Can I change the requested URL in a middleware?
I created a page middleware, and I'd like to update the requested URL from
foo/bar
to bim/bam/boum
in the event object? Here's my skeleton code:
1 Reply
So the answer was in fact pretty easy, the trick is to re-create a FetchEvent:
Hmm, it seems that nothing gets hydrated on the rendered page.