Fix for icon URLs when behind reverse proxy

The change that was made to make the plugin urls work
for non-root contexts didn't work well with reverse proxies.
This fixes that.

Change-Id: Iacc30fdecee89adf429f7ed0979eeee85c9b6bd2