NO BUG: Bricks Builder loading error: Discrepancy between WordPress Address and Site Address (Reverse Proxy)

Browser: Chrome 110
OS: macOS

Hi Bricks Support Team,

I’m having trouble accessing the Bricks Builder in a specific environment. My site uses a reverse proxy where the WordPress core and the public front-end are on different domains.

  • WordPress Address (URL): https://backend-domain.com (Original server)
  • Site Address (URL): https://shop-domain.com/blog (Front-end domain via proxy)

Current Situation: If I keep these two URLs different (as required for the proxy), clicking “Edit with Bricks” fails to load the builder or redirects incorrectly.

Key Finding: If I temporarily change the Site Address (URL) to match the WordPress Address (URL), the Bricks Builder works perfectly. However, for production, they must remain different.

Question: Is there a way to force the Bricks Builder (editor) to always use the WordPress Address domain for its internal requests and iframe loading, even when the Site Address is different?

Any hooks or constants to resolve this URL discrepancy for the builder would be much appreciated.

I’ve searched the forum and found some topics about URL issues in Multisite environments (e.g., Wingtracer’s post about switching to HTTPS), but my case is different. I am NOT using Multisite. My site is a single-site installation behind a reverse proxy (makeshop), which forces a discrepancy between the WordPress Address and the Site Address.

Thank you in advance for your help!

Hi Goen,
Welcome to the forum!

We have received your ticket and will get back to you as soon as possible.

Basically, it is sufficient to report problems either here in the forum or by email—everything ends up with the same team :slight_smile: However, processing times may be slightly longer before and after the weekend. Thanks for your understanding!

I’ve already shared the solution with @GOENINC via email, but posting it here for reference in case others run into the same issue and end up here.

Bricks provides the bricks/get_builder_edit_link filter, which can be used to modify or override the builder edit URL. You can review its implementation in includes/helpers.php to see how the link is generated and where the filter is applied.