djangodjango-templateswagtailwagtail-pageurl

Wagtail internal link urls arent working properly


in my rich body text fields, when an internal page is used for a link, the url that gets attached to the a tag is "https//example.com/example", ie it's missing the colon and the link doesnt work. I get the error "https's server ip address could not be found".

any idea why it is doing this? thanks


Solution

  • Check the site record under Sites -> Settings. The hostname field should NOT contain https - i.e. it should be example.com, not https://example.com.