Fixed a bug in the redirect (would omit prefix)