Template in url_path

Hi, I have a tap_action on a card that looks like this:

    tap_action:
      action: url
      url_path: https://www.website.example/event?id={{ states('sensor.some_id') }}

and the url_path is not getting processed by jinja. Can it be done? Am I doing it wrong?

What card. Not all cards support templates.

Oh, my bad, I completely forgot. It’s custom:mushroom-template-card (Mushroom Template Card)