make admin assets url protocol-aware