Skip to content

Commit

Permalink
Fixed email routes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Nov 27, 2024
1 parent 18047d5 commit c766d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Notifications/BadgeActionOccured.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/UserRegistered.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function toMail($notifiable) {

$message->line('<br><h1 style="text-align: center; margin-bottom: 5px"><b>' . __('notifications.make_an_impact') . '</b></h1>');
$message->line('<p style="text-align: center; margin-bottom: 5px"><b>' . __('notifications.visit_your_dashboard_contribute') . '</b></p>');
$message->action(__('notifications.go_to_dashboard'), route('my-dashboard'));
$message->action(__('notifications.go_to_dashboard'), route('my-dashboard', ['locale' => app()->getLocale()]));

return $message;
}
Expand Down

0 comments on commit c766d11

Please sign in to comment.