fixes #2526 Favicon only shows up if foreman is deployed in the root context
(cherry picked from commit ecc106ace7d609e529e9472eb490765f59dcf028)