URL rewrites when Metabase is exposed on a subpath

Hello,

We're hosting Metabase on our platform and exposing it on a subpath e.g. https://mydomain.com/metabase/, configured with the MB_SITE_URL variable as per Environment variables | Metabase Documentation .
All is working well and fine, except for 2 issues I've identified so far that seem to be caused by Metabase's URL rewrite rules:

  • when formatting a table's column as hyperlink, the URL gets rewritten from e.g. https://mydomain.com/item/<id> to https://mydomain.com/metabase/item/<id> (inserting the subpath to my hyperlink's target URL)
  • when including a filter on a publicly shared question, the filter or the URL https://mydomain.com/metabase/public/question/<uuid>?mydatefilter=2025-06-01 is not applied to the question, so that I'm suspecting that the query string is not processed (not sure how to verify that though). The filter widget is displayed on the publicly shared question, but selecting a date there is also not applied to the query.

I've tested the same on a local instance of metabase on my machine using docker, and could confirm that identical queries behave differently on http://localhost:3000/ and on https://mydomain.com/metabase/.
Has anyone else ever met this, found a workaround, and/or should I create a bug report on Github? It may be related to that 2-year-old bug.

Thanks,
Simon

Yeah metabase doesn't directly support running in a subpath scenario. It works but the overall link situation is odd. There is a bug opened about this with some information of what works and what doesn't work. For reference