Allie Long (16) and Racing Louisville FC forward Savannah McCaskill (7) battle for the ball. (Dennis Schneidler-USA TODAY)

HARRISON, N.J. ­– NJ/NY Gotham FC announced Friday that midfielder Allie Long has signed a two-year deal that will keep her with the club through the 2023 National Women’s Soccer League season.

Terms of the deal were not announced.

Long recently wound up in a middle of a controversy in which the NWSL found Angel City FC guilty of tampering with the Long Island native. The 2022 expansion team was fined $40,000 by the league.

“Bringing Allie back was a key offseason priority for us,” interim general manager Yael Averbuch West said in a statement. “She’s an incredible talent who plays with such consistency and composure. She played a big role in solidifying our midfield last season and led by example on and off the field. We’re thrilled to welcome her back.”

Long was acquired via trade with OL Reign in April.

Through nine NWSL seasons, the 34-year-old has made 173 appearances, scoring 35 goals and assisting on 16 across all competitions. In her first year with Gotham FC, Long logged more than 2,000 minutes in 23 regular season games and found the back of the net once. The Northport, N.Y. native reached the 150 regular season appearance milestone last season, becoming the sixth player in league history to accomplish that feat. Widely known for her ability to distribute, Long finished the season with a team-high 91 percent passing accuracy.

Long has six goals in 45 appearances with the U.S women’s national team.