With this patch the detail action always assumes that the last parameter is the value for getting the detail record.

When using the index and detail action from the same page we should use parameter(1)
When using the index and detail action from different pages we should use parameter(0)