Fixed logic in homepage redirect to layout.