<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Assets missing protocol using get_asset_url in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1141962#M42841</link>
    <description>&lt;P&gt;Hey Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone may be able to help guide me to a solution on an issue I am encountering with links to assets in my css files.&amp;nbsp; So far this issue appears to be isolated to font files, but I am not sure why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I link the fonts via CSS using get_asset_url, the generated url is missing protocol (https) in the URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubspot CSS entry&lt;/P&gt;&lt;LI-CODE lang="css"&gt;url( {{ get_asset_url('../fonts/fa-solid-900.woff2') }} )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubspot Generated URL&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;url(//45725153.fs1.hubspotusercontent-na1.net/hubfs/45725153/raw_assets/public/arc-k_dev_theme/assets/fonts/fa-solid-900.woff2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attempted to link the full path and relative path to the file.&amp;nbsp; In both events, the protocol (https) is missing from the URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add the protocol (https) to the URL, the file is there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://45725153.fs1.hubspotusercontent-na1.net/hubfs/45725153/raw_assets/public/arc-k_dev_theme/assets/fonts/fa-solid-900.woff2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate any help someone can provide!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 04:11:56 GMT</pubDate>
    <dc:creator>arcknowledge</dc:creator>
    <dc:date>2025-04-29T04:11:56Z</dc:date>
    <item>
      <title>Assets missing protocol using get_asset_url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1141962#M42841</link>
      <description>&lt;P&gt;Hey Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone may be able to help guide me to a solution on an issue I am encountering with links to assets in my css files.&amp;nbsp; So far this issue appears to be isolated to font files, but I am not sure why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I link the fonts via CSS using get_asset_url, the generated url is missing protocol (https) in the URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubspot CSS entry&lt;/P&gt;&lt;LI-CODE lang="css"&gt;url( {{ get_asset_url('../fonts/fa-solid-900.woff2') }} )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubspot Generated URL&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;url(//45725153.fs1.hubspotusercontent-na1.net/hubfs/45725153/raw_assets/public/arc-k_dev_theme/assets/fonts/fa-solid-900.woff2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attempted to link the full path and relative path to the file.&amp;nbsp; In both events, the protocol (https) is missing from the URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add the protocol (https) to the URL, the file is there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://45725153.fs1.hubspotusercontent-na1.net/hubfs/45725153/raw_assets/public/arc-k_dev_theme/assets/fonts/fa-solid-900.woff2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate any help someone can provide!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 04:11:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1141962#M42841</guid>
      <dc:creator>arcknowledge</dc:creator>
      <dc:date>2025-04-29T04:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assets missing protocol using get_asset_url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142264#M42848</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/748189"&gt;@arcknowledge&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's invite some community members into the conversation — hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186" target="_blank"&gt;@Anton&lt;/A&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/67683"&gt;@LucBenayoun&lt;/a&gt;&lt;/SPAN&gt;, &lt;STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt; can you share how you are handling this in your current workflow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 16:28:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142264#M42848</guid>
      <dc:creator>DianaGomez</dc:creator>
      <dc:date>2025-04-29T16:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Assets missing protocol using get_asset_url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142354#M42851</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/748189"&gt;@arcknowledge&lt;/a&gt;&amp;nbsp;- strangely - and I don't know why this is the case - the HubL function seems ot be defined in such as way that it returns the path but not the protocol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the doc page:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveHTM_0-1745954061286.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/144713iC4EED6192ECA9203/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveHTM_0-1745954061286.png" alt="SteveHTM_0-1745954061286.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I guess the use is supposed to be limited to the context of the page compilation system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 19:15:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142354#M42851</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2025-04-29T19:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Assets missing protocol using get_asset_url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142360#M42853</link>
      <description>&lt;P&gt;Yeah, there must be some reasoning behind it.&lt;BR /&gt;&lt;BR /&gt;But you can get around it by using&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ 'https:' + get_asset_url('../fonts/fa-solid-900.woff2') }}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and maybe to be totally safe&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ 'https:' + get_asset_url('../fonts/fa-solid-900.woff2')|regex_replace('https?://', '') }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt; | &lt;A href="https://www.linkedin.com/in/barrygrennan" target="_blank" rel="nofollow noopener noreferrer"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 19:32:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Assets-missing-protocol-using-get-asset-url/m-p/1142360#M42853</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2025-04-29T19:32:36Z</dc:date>
    </item>
  </channel>
</rss>

