0

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

b00n.
  • 35
  • 1
  • 4

2 Answers2

0

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.

gasman
  • 23,691
  • 1
  • 38
  • 56
  • I did think about that. I had set it with the https://, so i removed it but no luck. I guess the existing pages are all still using the old host name in their url in the db – b00n. Oct 06 '20 at 10:23
0

in case anyone else has this issue, it seems having more than one site in wagtail caused this. I had the default localhost site still on there, even after switching to a new production site configuration. deleting the localhost site fixed this.

b00n.
  • 35
  • 1
  • 4