Add the correct path to category overview.

This commit is contained in:
James Cole 2015-04-12 10:19:37 +02:00
parent c37e9a4467
commit a3423f0321

View File

@ -136,6 +136,7 @@ class CategoryController extends Controller
$set = $repository->getJournals($category, $page);
$count = $repository->countJournals($category);
$journals = new LengthAwarePaginator($set, $count, 50, $page);
$journals->setPath('categories/show/' . $category->id);
return view('categories.show', compact('category', 'journals', 'hideCategory'));
}