The territories that Mexico lost in that war were filled with American immigrants. The Mexican government opened their borders for Americans because they saw easy labor. A few years later their country gets halved.
It could be said that Mexico may want to reverse the effects of that war. I wouldn't be surprised, but I also won't claim that.