How to change protocol // to https:// in LinkedIn script in HubSpot?

Tengo una consulta respecto a una URL en un sitio alojado en HubSpot. La URL no la añado yo; la genera HubSpot al conectar la cuenta con LinkedIn. Sin embargo, esta URL afecta la seguridad del proyecto. Necesito cambiar el protocolo de // a https:// para mejorar la seguridad, pero no puedo hacerlo.

Código actual:

<script src=“//platform.linkedin.com/in.js” type=“text/javascript” nonce=“”>
lang: es_ES
</script>
Este código no aparece en mis archivos editables dentro del administrador de diseño. Tengo conectada la app de LinkedIn Ads en la cuenta, pero no sé si es ella la que inyecta este script. Solo aparece en las páginas del blog.

Hey @PEstrada1411,

I’ve used a translator to translate your question, so there might be a few errors.
What I got from the translator:
While enabling the LinkedIn connection in HubSpot, a non https:// script is getting added to your blog header which affects the security.

While there’s no “easy” option to change this as HubSpot automatically generates this code, you can try modifying the blog or base templates (depending on your setup).

If your blog template starts something like

<!--
 templateType: blog_listing
 label: Blog listing
 isAvailableForNewContent: true
-->
{% extends '../layouts/base.html' %} 

and doesn’t contain a dedicated

{{ standard_header_includes }}

tag, look for the file linked in the ‘extends’. In this example it’s base.html

Open this file and change the

{{ standard_header_includes }}

to

{{ standard_header_includes|replace('//plattform.linkedin.com', 'https://plattform.linkedin.com')

This should do the job.

Is it recommended to modify the

{{ standard_header_includes }}

Not really, but sometimes it’s the only clean solution.

Also - be careful with other modifications as there are many important things getting loaded via this snippet.

best,

Anton