Browsing in the site changes the URL from my custom domain to the netlify domain

Hi, yesterday I deployed a hugo site using netlify. The the site is host on a subdomain “”. However the primary domain The primary domain is hosted on a different service.

Now the problem is when I type on the url bar, it takes me to the site, but when I browse the site, meaning visiting other pages within the site. It redirects to the url!

How do I fix that?
To know how I configured the domain, see the screenshots below.

@shmishkat When you “view source” on the site that’s hosted at do the href= values of your links point to the same site, (stay on, or do they point to