bug fix: redirect() to use resolvePath()