Domain mapping with Multisite links are wrong

I figured this out right after I posted the question but thought it would help someone who ran into the same issue. I have to go to:

Network Admin -> Sites -> edit a site -> Settings -> change “site url” and “home”

error code: 523