Skip to content

Commit

Permalink
Allow redirects to external paths when creating a user account
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Aug 23, 2024
1 parent 4f2ad8f commit 3c3bbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def index
def new
authorize! :create, User
alternative_location = SiteSetting.all_settings['signup_location']
return redirect_to alternative_location if alternative_location
return redirect_to(alternative_location, allow_other_host: true) if alternative_location
add_breadcrumb 'Sign up', new_user_path

if signed_in?
Expand Down

0 comments on commit 3c3bbc5

Please sign in to comment.