Access host's medium URL

Trying to access Installation Media URL/path from within provisioning PXELinux template

Expected outcome:
Using @host.operatingsystem.mediumpath(@host) results in:

url --url http://hostname/upstream/yum/rocky/9.3/BaseOS/x86_64/os

but I need only:


I can fudge it with @host.operatingsystem.mediumpath(@host).match(/http.*/), but wondering if there is another way or something I am missing. Looks like this API has changed quite a bit.

Foreman and Proxy versions:
Foreman v3.10.0


I think you should be able to user the <%= medium_uri %> macro to access that URL directly. Is that what you are looking for?

That works! That is not listed in the /templates_doc on my server and old threads like Alternative for @host.medium.path mentioned @host.os.medium_uri(@host) which seems to no longer work.

Thanks so much!

Missing documentation is a bug that should be fixed.