fix path override in redirects, closes #230