Make default redirect target configurable, fix redirect key prefix