FIX: Redirects containing Unicode usernames didn't work

This commit is contained in:
Gerhard Schlager
2020-06-05 18:31:58 +02:00
parent f6628e4f43
commit 8c6a42c589
12 changed files with 96 additions and 19 deletions

View File

@ -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