diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index 6abae3f84..a94887360 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -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')]);