# Data fetching with redirect on errror
Page that gets redirected via navigateTo in a middleware still gets executed
3.xbugpages🔨 p3-minor
Route middleware run twice on the server after redirect
pending triage
Setup function of the destination page after redirect with navigateTo invoked twice
good first issue3.xbug🍰 p2-nice-to-have✨ good reproduction
Page is rendered even if `fetch` called `redirect`
available soon2.x
Middleware is executed twice when an error gets thrown
3.xpending triage
In CSR app, `navigateTo` (with `external:true`) redirection from route middleware triggers page script setup
good first issue3.xbugpages🔨 p3-minor✨ good reproduction