diff --git a/CHANGELOG.md b/CHANGELOG.md index 867e0ec..62b79c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## Unreleased +## 1.0.1 - 2018-06-08 + ### Fixed - Fixed first save of settings on install +- Fixed pagination urls for setups with non-standard cpTrigger ## 1.0.0 - 2018-04-04 diff --git a/composer.json b/composer.json index 175de21..073e224 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "superbig/craft-audit", "description": "Log adding/updating/deleting of elements", "type": "craft-plugin", - "version": "1.0.0", + "version": "1.0.1", "keywords": [ "craft", "cms", diff --git a/src/controllers/DefaultController.php b/src/controllers/DefaultController.php index 9514039..e6d51f6 100644 --- a/src/controllers/DefaultController.php +++ b/src/controllers/DefaultController.php @@ -11,6 +11,7 @@ namespace superbig\audit\controllers; use craft\helpers\Template; +use craft\helpers\UrlHelper; use craft\web\UrlManager; use superbig\audit\Audit; @@ -51,7 +52,7 @@ public function actionIndex() { $itemsPerPage = 20; $currentPage = Craft::$app->getRequest()->getParam('page', 1); - $urlPattern = '/admin/audit?page=(:num)'; + $urlPattern = UrlHelper::cpUrl('audit?page=(:num)'); $query = AuditRecord::find() ->orderBy('dateCreated desc') ->with('user')