Refs #26198 - Replace foreman_url with tfm.tools.foremanURL
ac1fe0d moved the foreman_url js function to webpack and deprecated the old version but there were still a couple of places calling it causing warnings in the console. This replaces those use cases with the newer function.
Related issues
Refactor #26198: ensure host list does not trigger a full page reload
Refs #26198 - Replace foreman_url with tfm.tools.foremanURL
ac1fe0d moved the foreman_url js function to webpack and deprecated the
old version but there were still a couple of places calling it causing
warnings in the console. This replaces those use cases with the newer
function.