APIs & Integrations

JNaughton
Participant

Setting up reverse proxy breaks calls-to-action links

SOLVE

Hi there,

 

I am in the process of setting up CloudFront to act as a reverse proxy so we can redirect users based on their IP geolocation .

 

I am following this article: https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support

 

This seems to work except that all the calls-to-action buttons break. When clicking on one it opens a new tab with the following error message:

 

{"status":"error","message":"No portal supplied for XXXXXX.sites-proxy.hscoscdn10.net","correlationId":"fd268dcd-8223-4c5b-8d1b-ec8667b32e03"}

 

Where XXXXXX=HubID

 

Not sure what this means or why simple links are breaking? The HubSpot CTA don't seem to be direct links, I assume this is because they are capturing metrics? Any assistance here would be greatly appreciated.

1 Accepted solution
JNaughton
Solution
Participant

Setting up reverse proxy breaks calls-to-action links

SOLVE

I ended up resolving this issue.

 

The problem ended up being it wasn't forwarding all query strings by default in the cache policy. Once I fixed this up, all the CTA started working.

View solution in original post

3 Replies 3
JNaughton
Solution
Participant

Setting up reverse proxy breaks calls-to-action links

SOLVE

I ended up resolving this issue.

 

The problem ended up being it wasn't forwarding all query strings by default in the cache policy. Once I fixed this up, all the CTA started working.

Jaycee_Lewis
Community Manager
Community Manager

Setting up reverse proxy breaks calls-to-action links

SOLVE

Hi, @JNaughton 👋 Welcome to the community! I want to make sure you've seen this thread — Lessons Learned from Setting up a Reverse Proxy With HubSpot CMS (includes sample nginx config!). It continues to have an active discussion.

 

Hey, @LMeert @coldrickjack @nikodev, do you have any experience with reverse proxies and HubSpot CTAs?

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
JNaughton
Participant

Setting up reverse proxy breaks calls-to-action links

SOLVE

Hi Jaycee

 

Yes I was referncing that article while trying to set it up but it doesn't specifically mention this problem

 

Cheers

Jake

0 Upvotes