Update path in redirect middleware (bug 823488)