I don't think that hash_for_system_path will work here.  The content host (aka system) page is written in angular, so you will likely need to use an approach similar to what was mentioned previously here:
https://github.com/Katello/katello/pull/4045#discussion_r12400403