# redirect\_incat

Source: https://zotonic.com/docs/1852/redirect_incat

URI: https://zotonic.com/id/1852

Language: en



Redirect the admin editor to the next or previous resource in a category.

Pass `id` and `cat_id`; set `is_prev` to select the previous resource instead of the next one. Navigation wraps at either end of the category. When no other resource exists, the action displays a notification.

For example:

```django
{% button text="Next" action={admin_redirect_incat id=id cat_id=q.qcat} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1852?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1852?language=en>)
