diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index 8da7e2dd0..cb7dfff54 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -761,7 +761,15 @@ abstract class DocumentShow extends Base return $routeButtonCustomize; } - $route = 'settings.' . $type . '.edit'; + $route = ''; + + $alias = config('type.' . $type . '.alias'); + + if (!empty($alias)) { + $route .= $alias . '.'; + } + + $route .= 'settings.' . $type . '.edit'; try { route($route);