Twig 无法链接到外部url(cms)

Twig 无法链接到外部url(cms),twig,href,bolt-cms,contenttype,Twig,Href,Bolt Cms,Contenttype,我正在使用博尔特CMS,我正试图创建一个链接到一个外部网站 <a href="{{ record.contentlink }}">Link</a> 因此,我从一个contenttype中获取一条记录,这是有效的,但当我尝试使用href链接到此记录时,我的域被添加到url中 无论我做什么,我都无法链接到外部网站 <a href="{{ record.contentlink }}">Link</a> 链接到mydomain.com/www.ex

我正在使用博尔特CMS,我正试图创建一个链接到一个外部网站

<a href="{{ record.contentlink }}">Link</a> 
因此,我从一个contenttype中获取一条记录,这是有效的,但当我尝试使用href链接到此记录时,我的域被添加到url中

无论我做什么,我都无法链接到外部网站

<a href="{{ record.contentlink }}">Link</a> 
链接到mydomain.com/www.externalurl.com,而我只想被定向到www.externalurl.com

我希望解决方案非常简单,但到目前为止我还没有找到答案。。。 谢谢你的帮助

试试看

<a href="http://{{ record.contentlink }}">Link</a> 

只要您的记录中没有“http://”,它就会工作。contentlink

U'r right!好的,谢谢,这很有效。但是,出现了另一个问题:当编辑器在记录中写入“http://”时,将使用“:”打印“http/”。你知道为什么会这样吗?