mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 08:15:35 +08:00
FIX: 'redirect_to :back' is deprecated
This commit is contained in:
parent
6acf0693a5
commit
3c230d8f97
@ -97,7 +97,7 @@ class EmailController < ApplicationController
|
||||
end
|
||||
|
||||
unless updated
|
||||
redirect_to :back
|
||||
redirect_back fallback_location: path("/")
|
||||
else
|
||||
if topic
|
||||
redirect_to path("/email/unsubscribed?topic_id=#{topic.id}&email=#{user.email}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user