Why all my Urls are build with master--mydomain.netlify.app even with custom domain and redirection?


I use Hugo SSG for create my website
My Default subdomain netilfy is : azimuter.netlify.app
My Primary domain : azimuter.com

i use one redirection rule in my netlify.toml file
in my deploy summary, no problem :
- 1 redirect rule processed**
- All redirect rules deployed without errors.


  from = "https://azimuter.netlify.app"
  to = "https://azimuter.com"
  status = 301
  force = true

My website is working.
But all my links are build with master–azimuter.netlify.app
It’s the same for my /sitemap.xml

What can i do ?
thank you in advance

I find the problem.
It come from my netlify.toml file
I used this command line before (from old version)

command = "hugo --gc --minify --base URL $DEPLOY_PRIME_URL"

And now only just

command = "hugo --gc --minify"

The site works and the links too :ok_hand:

1 Like