Action URL with portable reference to the openHAB server

  • Platform information:
    • Hardware: armhf
    • OS: Debian 9
    • Java Runtime Environment: 11
    • openHAB version: OH3

I am trying to edit an cell in ‘PaperUI’ with a URL that is portable.

Today it reads:

 - component: oh-label-cell
                  item: Backup_Output
                  title: Output
                  stateAsHeader: true
                  expandable: false
                  action: url
                  actionUrl: http://myopenhabserver.lan:8080/static/
                  footer: Click to download

But that has hard coded http://myopenhabserver.lan:8080 and is not portable.

It there a way to replace myopenhabserver.lan with some sort or macro (?) that is portable that always inserts current IP address that the OH3 server is running on?

Why? So my backup is portable to a new machine with a different hostname/IP

Solved! (Easy)

actionUrl: /static/