diff --git a/app/Notifications/BadgeActionOccured.php b/app/Notifications/BadgeActionOccured.php index 3f782254..ad88dc63 100644 --- a/app/Notifications/BadgeActionOccured.php +++ b/app/Notifications/BadgeActionOccured.php @@ -49,7 +49,7 @@ public function objectToMail(GamificationBadgeVM $badge, if ($salutation) { $message->salutation($salutation); } - $message->action(__('notifications.go_to_dashboard', [], $this->locale), route('my-dashboard')); + $message->action(__('notifications.go_to_dashboard', [], $this->locale), route('my-dashboard', ['locale' => $this->locale])); return $message; } diff --git a/app/Notifications/UserRegistered.php b/app/Notifications/UserRegistered.php index 5b31c7d8..e348b60c 100644 --- a/app/Notifications/UserRegistered.php +++ b/app/Notifications/UserRegistered.php @@ -33,7 +33,7 @@ public function toMail($notifiable) { $message->line('

' . __('notifications.make_an_impact') . '

'); $message->line('

' . __('notifications.visit_your_dashboard_contribute') . '

'); - $message->action(__('notifications.go_to_dashboard'), route('my-dashboard')); + $message->action(__('notifications.go_to_dashboard'), route('my-dashboard', ['locale' => app()->getLocale()])); return $message; }