LPS-37962 Add inheritRedirect when needed