YII2 Gridview Action Change URLS

<?= GridView::widget([
        ...
        'columns' => [
			...
            [
                'class' => 'yii\grid\ActionColumn',
                'urlCreator' => function ($action, $model, $key, $index) {
                    return Url::toRoute(['controller/' . $action, 'id' => $model->id]);
                }
            ],
        ],
  ]) ?>
Wicked Wolf