Updated Router handling of homepage conditions.