preserves url paths when redirecting fixes #1