Merge pull request #648 from openclassify/dia

#2008 Listing view type error
This commit is contained in:
Fatih Alp 2020-08-21 17:25:54 +03:00 committed by GitHub
commit 686941a892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ class AdvsController extends PublicController
public function viewType($type)
{
Cookie::queue(Cookie::make('viewType', $type, 84000));
return redirect($this->request->headers->get('referer'));
return redirect($this->request->headers->get('referer') ?: route('visiosoft.module.advs::list'));
}
public function view($seo, $id = null)