FIX: enforce second factor with subfolders (#30992)

fix an improper redirect when enforcing second factor under a subfolder
install
This commit is contained in:
Jeff Wong
2025-01-24 11:50:52 -08:00
committed by GitHub
parent 59a6775848
commit 4c1c4ba8d4
2 changed files with 10 additions and 1 deletions

View File

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