Infinite http-equiv="refresh" loop being created on build, not dev

I created a stackoverflow question here, but basically I’m trying to create a static contact page following this article, and I am using a shortcode to insert the contact form.

This appears to work when I run hugo serve --ignoreCache --disableFastRender --noHTTPCache -D, but when I build the site creates an infinite loop on the baseURL/contact/ page by way of http-equiv=refresh.


Maybe this:

- /contact.html
- /blog/contact/
- /blog/contact.html

If I didn’t get me wrong, you intend to insert a contact form on the page with a shortcode, but I suggest you use partial instead, or create a separate contact layout page, then specify it on the frontmater page you created.

layout: contact