For a scalar field $\varphi$, the "wave" operator is defined as follows:
$$\Box \varphi \equiv g^{ab}\nabla_a\nabla_b~\varphi = \frac{1}{\sqrt{|g|}}\partial_a\left\{\sqrt{|g|}~g^{ab}~\partial_b~\varphi\right\}~,$$
where $g_{ab}$ represents the (spacetime) metric, $g$ the metric determinant and the indices $a,b = 0, 1, 2, ...., n-1$ in $n$ dimensions. This expression is a way to write down the wave operator without using covariant derivatives.
I want to know how to obtain a similar expression in the case of a vector field $A^a$. For example in Maxwell's equation in curved spacetime, one has the equation $\Box A^a - \nabla^a(\nabla_bA^b) - R^a_bA^b= 0$.
In such a case, is a similar expansion valid? I hesitate to think so, because one then obtains terms like $\partial_mA^a$ which are not tensorial.