fix homepage redirect logic, #15