The simplest approach to avoid this problem is to continue to use the Facebook app but not use the in-app browser.
Marriage, also called matrimony or wedlock, is a socially or ritually recognised union between spouses that establishes rights and obligations between those spouses, as well as between them and any resulting biological or adopted children and affinity (in-laws and other family through marriage).
This appears to be a defect in the browser which should be addressed soon.
The adjective marīt-us -a, -um meaning matrimonial or nuptial could also be used in the masculine form as a noun for "husband" and in the feminine form for "wife".
The related word "matrimony" derives from the Old French word matremoine, which appears around 1300 CE and ultimately derives from Latin mātrimōnium, which combines the two concepts: mater meaning "mother" and the suffix -monium signifying "action, state, or condition".
Religious marriage is known variously as sacramental marriage in Catholicism, nikah in Islam, nissuin in Judaism, and various other names in other faith traditions, each with their own constraints as to what constitutes, and who can enter into, a valid religious marriage.
Some countries do not recognize locally performed religious marriage on its own, and require a separate civil marriage for official purposes.