Well, this is really a classical mechanics question, but I'll answer it and leave it to mods to move the thread if they desire.
You are confusing a couple things. Noether's Theorem deals with the consequences of transformations that leave the action invariant along ALL paths, and in particular...