Item citation proxied site

What would be the best way to get a proper citation on a proxied Omeka site. So we proxy are site, and all citations look like this:

“Croton, Bruttium, Silver Stater,” Hallie Ford Museum of Art Exhibits , accessed April 15, 2019, http://lib-omeka.willamette.edu/hfma/omeka/items/show/61.

but they should be from the site we proxy:

“Croton, Bruttium, Silver Stater,” Hallie Ford Museum of Art Exhibits , accessed April 15, 2019, https://libmedia.willamette.edu/hfma/omeka/items/show/61.

Thanks,
Bill K.

So my current solution is to edit the Item.php file in the application/models folder:

/// Fix citation URL for proxy on libmedia
$url = str_replace(‘http://lib-omeka’,‘https://libmedia’,$url);