mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 06:09:15 +08:00
FIX: Redirects containing Unicode usernames didn't work
This commit is contained in:
@ -7,7 +7,7 @@ class EmailController < ApplicationController
|
||||
before_action :ensure_logged_in, only: :preferences_redirect
|
||||
|
||||
def preferences_redirect
|
||||
redirect_to(email_preferences_path(current_user.username_lower))
|
||||
redirect_to path("/u/#{current_user.encoded_username}/preferences/emails")
|
||||
end
|
||||
|
||||
def unsubscribe
|
||||
|
Reference in New Issue
Block a user