| 46 | |
| 47 | Default destination of the redirection after a ''create'' or ''update'' is the ''read'' view of the processed record, after a ''delete'' it is the ''list'' view of the respective table. |
| 48 | |
| 49 | The redirection destination can be configured per DB table, using: |
| 50 | |
| 51 | {{{ |
| 52 | s3xrc.model.configure(table, create_next=url) |
| 53 | }}} |
| 54 | {{{ |
| 55 | s3xrc.model.configure(table, update_next=url) |
| 56 | }}} |
| 57 | {{{ |
| 58 | s3xrc.model.configure(table, delete_next=url) |
| 59 | }}} |
| 60 | |
| 61 | where: |
| 62 | - '''table''' is the respective DB table |
| 63 | - '''url''' is the URL to redirect to |
| 64 | |
| 65 | If, for create_next or update_next, '''url''' contains the string literal "[id]" (or its URL-encoded equivalent), then this literal is replaced by the ID of the updated/newly created record before redirection. |