From 38297fef98bdc02ea85edf2141899018f9bdd78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Fri, 15 Jan 2021 19:17:35 +0300 Subject: [PATCH] Fix signed url for modules --- app/Abstracts/View/Components/DocumentShow.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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')]);