I have images linked to a CDN on AWS throughout 400 or so pages in hubspot that I need to find and replace with hubspot URLs. Is there any way to find and replace URLs in hubspot? Or any way to search the content of pages to at least see what pages these old CDN image links are? In WordPress I can install a plugin to find and replace URLs, easy peasy, is there any similar tool available for HubSpot?
If it matters, the site is behind a login and not public.
Hoping to avoid opening each page and manually searching and replacing if I can help it.
This isn’t currently possible with HubSpot. We must crawl the pages to find the CDN URLs and manually update them in the page editor; there’s no other way.
currently it’s not easy to you could use some APIs to achieve this.
For instance:
- Create redirects from A to B for the image paths. Not the best solution since it would most likely impact SEO performance, but possible.
- Use the get-all-pages API to get all available pages, open the file in a code editor like VSCode, edit all required URLs, use the update-a-page API to update a single page
Recommendation for future uses:
- Create a HubDB or static variables file with all the image paths and implement it into your pages.
If you’re using HubDB for creating all those 400 pages and you have a column with the image path, you could replace it in there easily since you can export/import HubDB tables.
best,
Anton
- - -
@GiantFocal - great sales tactic to tell HubSpot users that something isn’t possible, just to get into their portal and do something similar as I’ve described above.
A bit of correction. Redirects won’t work since the images are hosted on AWS.
Regarding the API, correct me if I’m mistaken, but using the update-a-page function would still require pushing each page individually, which is not what @fair asked for.
Considering the time needed for setup, learning the API, and the possibility of errors, it would be safer and quicker to open the pages and update the images directly.