Avoid redirects with view selectors fix