diff --git a/src/Models/Base.php b/src/Models/Base.php index 9a454ebb..ae016cc7 100644 --- a/src/Models/Base.php +++ b/src/Models/Base.php @@ -28,7 +28,7 @@ public function uri($locale = null): string { $locale = $locale ?: config('app.locale'); $route = $locale . '::' . Str::singular($this->getTable()); - $slug = $this->translate('slug', $locale); + $slug = !empty($this->slug) ? $this->translate('slug', $locale) : null; if (Route::has($route) && !empty($slug)) { return route($route, $slug); }