Template URI Path

action: notify.mobile_app
metadata: {}
data:
  title: "{{ trigger.id }} Occupancy Alert"
  message: >-
    Some lights or devices have been left on in the {{ trigger.id }} however
    that room has no occupancy.
  data:
    group: indoor-location-notification-group
    actions:
      - action: URI
        title: Open {{ trigger.id }} View
        uri: /lovelace-views/{{ trigger.id }}
        icon: sfsymbols:viewfinder

The trigger.id is “Office”. This template populates everywhere including the title of the action but the URI navigates me to just my /lovelace-views/ page not the /lovelace-views/office page.

Any ideas?

Usually templates need " but I have not experience with this URI thing.
I would try and add the ".

    actions:
      - action: URI
        title: "Open {{ trigger.id }} View"
        uri: "/lovelace-views/{{ trigger.id }}"
        icon: sfsymbols:viewfinder