Say that you want to find the equations of motion of a free relativistic massive point particle by minimizing the action
$$S=-m\int\mathrm{d}\tau\,\sqrt{\eta_{\mu\nu}\frac{\mathrm{d}x^\mu}{\mathrm{d}\tau}\frac{\mathrm{d}x^\nu}{\mathrm{d}\tau}}.\tag{1} $$
But I'm very confused, because it seems to me that $$ \sqrt{\eta_{\mu\nu}\frac{\mathrm{d}x^\mu}{\mathrm{d}\tau}\frac{\mathrm{d}x^\nu}{\mathrm{d}\tau}}=\sqrt{u_\nu u^\nu}=c,\tag{2}$$
where $u_\nu$ is the 4-velocity, so the Lagrangian is just a constant and all the derivatives are 0. There must be a giant fault in my reasoning but I just can't see it.