What I mean by example is that my initial address is https://www.x.com and I use the vanity URL https://www.y.com. When I visit the site with the address https://www.y.com I see the https://www.y.com address.
When I click on the calendar button I see the https://www.x.com/calendar address and when go back to the home page see the https://www.x.com address.
I replaced the https://www.x.com with the https://www.y.com at the General settings but then the https://www.x.com/calendar doesn’t work.