I am trying to generalize the condition
Derivative[1, 0][ℒp][t, ϕ] -> Derivative[0, 1][ℒp][t, ϕ]/l
for $\ell$ a constant, through the following rule
rule02 = {Derivative[a_, b_][ℒp][t_, ϕ_] :> 1/l D[ℒp[t, ϕ], {t, a}, {ϕ, a}]}
However, when I consider the test
Derivative[0, 1][ℒp][t, ϕ] /. rule02
(* ℒp[t, ϕ]/l *)
an extra factor $1/\ell$ appear. I understand that my codes replace the factor $1/\ell$ even in spatial derivatives, nonetheless, I don't know how to avoid this mistake (I am biased for my code).
rule02 = {Derivative[a_, b_][ℒp][t_, ϕ_] :> (1/l)^a D[ℒp[t, ϕ], {t, a}, {ϕ, a}]}
? $\endgroup$Derivative[0, 1][ℒp][t, ϕ]
(ie. what is the expected output)? $\endgroup$