Hi,
On my plugin create page I have the redirect URL defined to a field which name is not id.
So I read the docs and I just changed
redirect: acme/blog/posts/update/:id
to
redirect: acme/blog/posts/update/:myOtherField
My model $primaryKey is also set to use myOtherField.
However, when a record is saved it's redirecting to acme/blog/posts/update/0- always passing the 0 zero value.
If I navigated directly to acme/blog/posts/update/123 the update form correctly loads the data associated with the record 123, so I assume there is nothing wrong with the update view or with the controller.
Any ideas why myOtherField value is not being passed to the redirect URL?