refactor($http): simplify buildUrl function

Closes #8955