diff --git a/app/assets/javascripts/pretty-text/engines/discourse-markdown-it.js.es6 b/app/assets/javascripts/pretty-text/engines/discourse-markdown-it.js.es6 index 0565004f93c..ecec3b16978 100644 --- a/app/assets/javascripts/pretty-text/engines/discourse-markdown-it.js.es6 +++ b/app/assets/javascripts/pretty-text/engines/discourse-markdown-it.js.es6 @@ -219,7 +219,7 @@ export function setup(opts, siteSettings, state) { typographer: siteSettings.enable_markdown_typographer }); - opts.engine.linkify.tlds(siteSettings.markdown_linkify_tlds.split('|')); + opts.engine.linkify.tlds((siteSettings.markdown_linkify_tlds || '').split('|')); setupUrlDecoding(opts.engine); setupHoister(opts.engine);