redirect on server action works depending on route ?

how come the first one doesnt work and throws an error, but the second one works fine?
image.png
Was this page helpful?