Fixes an issue that stopped the todo ID being returned to the controller which meant the delete path was for the wrong todo.
How to reproduce:
It currently sends to the wrong URL