Fix inner target redirects context