Updated redirect to work in the context of encore