(a) Any marriage contracted by a party, within or outside this state, with any other person before a judgment of divorce becomes final shall be voidable until the decree of divorce becomes final. An agreement which waives the right of appeal from the granting of the divorce and which is incorporated into the decree or signed by the parties and filed in the case shall be effective to shorten the period of time during which the remarriage is voidable.(b) A judgment or decree of divorce rendered in any other state or territory of the United States, in conformity with the laws thereof, shall be given full faith and credit in this state, except that, if the respondent in the action, at the time of the judgment or decree, was a resident of this state and did not personally appear or defend the action in the court of that state or territory and that court did not have jurisdiction over the respondent’s person, all matters relating to maintenance, property rights of the parties and support of the minor children of the parties shall be subject to inquiry and determination in any proper action or proceeding brought in the courts of this state within two years after the date of the foreign judgment or decree, to the same extent as though the foreign judgment or decree had not been rendered. Nothing in this section shall authorize a court of this state to enter a child custody determination, as defined in K.S.A. 2020 Supp. 23-37,102, and amendments thereto, contrary to the provisions of the uniform child custody jurisdiction and enforcement act.