Launch URL from the Resource Center
I want to set up my resource center in a manner where the click of an item in the resource center opens a link in a new tab.
Is there some custom code I can add in the resource center sandbox to configure this?

1
Comments
Hi, I'm interested in this use case.
Did you find a solution?
Same here
Shreyas Ravishankar Kevin Halladay-Glynn Marine Maillet.
Here is the solution I created to handel multiple usecases.
You just need to add a new codeblock to your RC and input the code below to make it, add a control segment and boom it ready for use.
(function resourceCenterOpenURL() {
if (!pendo.designerEnabled) {
document.getElementById('pendo-resource-center-container').setAttribute('style', 'display:none');
pendo.onGuideDismissed();
/* Replace https://example.com/ with your desired external URL */
window.open("https://example.com/", '_blank');
/* Uncomment below if you want to trigger to a guide on the same page & replace the guide_id_here within the quotes */
//pendo.showGuideById("guide_id_here");
/* Uncomment below if you want to go to another page in the same tab and then trigger a guide using guide permalink feature then replace the guide_id_here value */
//window.open("https://example.com/?pendo=guide_id_here", '_self');
}
})();
You can connect with me on LinkedIn for any other help
Please sign in to leave a comment.