My domain name ( works fine, but when I click on any of my posts (Hugo), it redirects to How do I keep my domain?

I know that was a long sentence, but I don’t really know how to shorten it.

The sentence was not that long, it simply should not have been in the subject.

As for the issue, it’s not redirecting. Your site simply uses absolute links with that hostname. Somewhere in your site configuration you will have configured your hostname and this will be preprended. You need to adjust that or drop it altogether - however that would be a question for

1 Like

You need to change your build command to hugo -b $CF_PAGES_URL. See Deploy a Hugo site · Cloudflare Pages docs


I am afraid you really best clarify this at mentioned forum, as this is an issue when your CMS generates the HTML content and not related to Cloudflare.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.