Merge pull request #1761 from burakcakirel/fix-signed-url

Fix signed url for modules
This commit is contained in:
Cüneyt Şentürk 2021-01-15 19:23:19 +03:00 committed by GitHub
commit f8a68912c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -611,8 +611,15 @@ abstract class DocumentShow extends Base
}
$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 {
route($route, [$this->document->id, 'company_id' => session('company_id')]);