Fixed bug on changing pk on update.

When changing the primary key of an item, the primary key in the URL would stay the same after you saved the changes, so the URL would no longer point to the correct record. I fixed this by redirecting to the correct URL.