Skip to content

3.2.0

Compare
Choose a tag to compare
@dereuromark dereuromark released this 05 Dec 21:26
· 26 commits to master since this release

Improvements

Added RedirectOutOfBoundsTrait for controller pagination to auto-fix 404s for humans.

Simply add the trait and enjoy the magic:

use Shim\Controller\Controller;
use Shim\Controller\RedirectOutOfBoundsTrait;

class AppController extends Controller {

    use RedirectOutOfBoundsTrait;

Instead of showing a not user-friendly 404 page, the pagination will redirect right away to the last page available.