Tweaked how editPath is passed to the server so it doesn't foul up validation.