Back when the church was forming just after Jesus’ death and persecution of Christians was begun by the Romans, many Christians worshiped roman gods to avoid death. Worshiping idols is a violation of the Ten Commandments, just as serious if not more serious than the dissolution of marriage. Yet the fathers of the church allowed these violators to return to the church after a period of penance. Cannon 11 of the First Council of Nicaea in the year 325 A.D. has your answer. It states:
“Concerning those who have fallen without compulsion, without the spoiling of their property, without danger or the like, as happened during the tyranny of Licinius, the Synod declares that, though they have deserved no clemency, they shall be dealt with mercifully. As many as were communicants, if they heartily repent, shall pass three years among the hearers; for seven years they shall be prostrators; and for two years they shall communicate with the people in prayers, but without oblation.”
Divorce and homosexuality, just as adultery, theft, lying, covetness and idolatry are sins. God forgives us sinners after a period of penance. They must be allowed back into full sacramental participation after a period of penance. Divorcees should go through a year of catechism and for two years should communicate with the people in prayer, but without oblation. Annulment in the church is a sham. There are so many reason for annulment especially Cannon 1099 (belief that marriage was only a civil contract). If you were not married in a catholic church one can get an annulment, yet with a Catholic Church marriage, one cannot. (Canons 1157, 1160) Why punish the practicing catholic more severely than the non-practicing catholic. If you let them go through a period of penance these newly evangelized may stay married the second time.