Skip to content

Commit af45155

Browse files
committed
Update ai redirect
1 parent 53d5ee9 commit af45155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def update
8787
def confirm_email
8888
token = VerificationToken.email.find_by!(user_id: params[:user_id], token: params[:id])
8989
redirect_path = root_url
90-
redirect_path = 'https://course.elementsofai.com/email-verification' if params[:origin] == 'elements_of_ai'
90+
redirect_path = 'https://course.elementsofai.com/email-verification' if params[:origin].start_with?('elements_of_ai')
9191
User.find(params[:user_id]).update!(email_verified: true)
9292
redirect_to redirect_path, notice: 'Your email address has been verified!'
9393
end

0 commit comments

Comments
 (0)