Skip to content

Commit

Permalink
cachethq#3102 fix redirects when adding subscribers/verifying them
Browse files Browse the repository at this point in the history
  • Loading branch information
Naugrimm committed Jan 25, 2019
1 parent 21e6b4c commit 2f49657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/SubscribeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function postSubscribe()
return cachet_redirect('status-page')->withSuccess(trans('cachet.subscriber.email.already-subscribed', ['email' => $email]));
}

return cachet_redirect('subscribe.manage', $subscription->verify_code)
return cachet_redirect('status-page')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('cachet.subscriber.email.subscribed')));
}

Expand All @@ -120,7 +120,7 @@ public function getVerify($code = null)
execute(new VerifySubscriberCommand($subscriber));
}

return cachet_redirect('status-page')
return cachet_redirect('subscribe.manage', ['code' => $subscriber->verify_code])
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('cachet.subscriber.email.verified')));
}

Expand Down

0 comments on commit 2f49657

Please sign in to comment.