Fix signed url for modules

This commit is contained in:
Burak Çakırel 2021-01-15 19:17:35 +03:00
parent 4fcf6affc9
commit 38297fef98
No known key found for this signature in database
GPG Key ID: 48FFBB7771B99C7C

View File

@ -611,8 +611,15 @@ abstract class DocumentShow extends Base
} }
$page = config('type.' . $type . '.route.prefix'); $page = config('type.' . $type . '.route.prefix');
$alias = config('type.' . $type . '.alias');
$route = 'signed.' . $page . '.show'; $route = '';
if (!empty($alias)) {
$route .= $alias . '.';
}
$route .= 'signed.' . $page . '.show';
try { try {
route($route, [$this->document->id, 'company_id' => session('company_id')]); route($route, [$this->document->id, 'company_id' => session('company_id')]);