Click behavior URL in a dynamic context

Subject: Click behavior URL dynamic context support in iframe embed

Hi,

I'm on the self hosted free tier of Metabase embedded via a plain iframe inside our application. The iframe src is constructed dynamically by our app and contains two unique IDs in the URL path (an organization ID and a report ID), so the full embedding page URL looks something like:

https://app.example.com/en/reports/{orgId}/report/{reportId}

I'm trying to set up click behavior on dashboard table cells so that clicking a row filters a call records table on the same dashboard to show only the filtered calls. I'm using "Go to URL" in the click behavior settings with {{ColumnName}} substitution to pass any variables I need.

The problem is that the destination URL in click behavior is static, there's no way to reference the host page URL or its dynamic path segments. If I hardcode the Metabase dashboard URL (metabase.example.com/dashboard/...), clicking I get a not found.

Since I'm on the free tier, the Embedding SDK is not an option.

My questions:

  1. Is there any way to use a relative URL or reference the host page URL/context in the "Go to URL" click behavior field?
  2. Is there any planned feature or workaround for this use case on the free tier?

Thanks

There is a specific click action for click-to-filter, for the click action select ‘Go to a custom destination’ → ‘Dashboard’ → (select the same dashboard & tab) → (select the filter to set with the clicked value).

With guest embedding you probably want to lock the org and report id. Pass those filter values through the JWT.

Is there any way to use a relative URL or reference the host page URL/context in the "Go to URL" click behavior field?

No, it’s not allowed by iframe security rules. If you need that data, pass it through the JWT.