Broken dynamic content urls

I don’t even know what to call it, but the dynamic variables for urls seem to be broken when used as a hyperlink.

Variables set as text

{{dc:global:home_url}} -> Https://domain.tld

{{dc:archive:url}}     -> Https://domain.tld/category

However, if I make it a hyperlink, copying the url results in this

http://https//domain.tld

http://https//domain.tld/category/

Highlighting over the link shows this

https//domain.tld

https//domain.tld/category/

Hello @u_laen,

Thanks for writing in!

When you use the dynamic content as a link, make sure that the resulting code looks like this:

<a href="{{dc:global:home_url}}">some text</a>

When you insert the make sure to remove the http::

Hope this helps.

1 Like

That was it, it seems to automatically insert the http://
Editing it out resolves the issue.

I would consider that behavior a bug, but it’s not hard to work around once you’re aware.

Thanks for your help!

Hello @u_laen,

The dynamic content {{dc:global:home_url}}. You just make sure that you have inserted it properly. Keep in mind that by default, when you insert a link in WordPress it will automatically adds http:// first.

Hope this explains it briefly.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.