mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: enforce second factor with subfolders (#30992)
fix an improper redirect when enforcing second factor under a subfolder install
This commit is contained in:
@@ -893,7 +893,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
redirect_path = path("/u/#{current_user.encoded_username}/preferences/second-factor")
|
||||
if !request.fullpath.start_with?(redirect_path)
|
||||
redirect_to path(redirect_path)
|
||||
redirect_to redirect_path
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user