CMS Development

OLubiarz
Member

disconnecting old domain issue with src

Hi,

We have noticed that after disconnecting the old domain, all images disappeared. We changed the default file manager hosting domain to the new one, however, images are still not visible. And they have the src from the old domain. Should not it be updated automatically since in the code we use get_asset_url , the example here: '<img src="{{ get_asset_url('/Widelab Dipli/images/logo_footer.svg') }}">' ?

Any idea how we can fix it?

 

Thanks,

Oliwia

 image (1).pngimage.png

0 Upvotes
3 Replies 3
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

disconnecting old domain issue with src

Hi @OLubiarz,

 

If you navigate to the file manager and check one of the images that is used, what URL is set for that file?
Schermafbeelding 2022-05-06 om 09.34.31.png
You could also check the default file manager hosting domain:

 

  • In your HubSpot account, click the settings icon in the main navigation bar.
  • In the left sidebar menu, navigate to&nbspWebsite > Pages. 
  • Click the SEO & Crawlers tab. 
  • In the Default File Manager Hosting Domain section, click the dropdown menu and select a domain.

If that is all set correctly, then yes, HubSpot should use the new domain. However, it would be wise to add a redirect from the old domain to the new domain.

 



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


OLubiarz
Member

disconnecting old domain issue with src

Hi @Teun,

 

This has been already changed to the new one, but still does not work.

I also recevied the answer from the support and the answer was that ' it looks like the image locations are hard-coded into the template coding itself.' which is strange, because the support could see the hard coded location, and in our template we use get_asset_url.

 

I am afraid that this problem is deeper since we had same issue in Feb and I got the following answer from the support 

'In this case, it appears that you still had the DNS records for 'info.agora.place' pointing to HubSpot's servers, so my team was able to simply add it as a redirect domain within your domain manager to resolve the issue. As long as the domain remains connected as a redirect domain, there won't be any issues with the images or any files hosted on this subdomain within HubSpot.'  - unfortunately, the old domain is deleted. 

 

Thanks,

Oliwia

Jaycee_Lewis
Community Manager
Community Manager

disconnecting old domain issue with src

Hey @OLubiarz 👋. Thanks so much for the question! To help us get started, can you try the following, please?

  • open an incognito tab and see if you get the same result

Additionally, if you get a solution via your support ticket, please share it here as it will definitely help others in the future 🙌

 

Thank you!  – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes