2
0

Fix login page linking to other pages within OAuth authorization flow (#36115)

This commit is contained in:
Eugen Rochko
2025-09-16 16:25:21 +02:00
committed by GitHub
parent d1402af0b2
commit d9b70bbde1
3 changed files with 10 additions and 2 deletions

View File

@@ -260,6 +260,10 @@ module ApplicationHelper
'https://play.google.com/store/apps/details?id=org.joinmastodon.android'
end
def within_authorization_flow?
session[:user_return_to].present? && Rails.application.routes.recognize_path(session[:user_return_to])[:controller] == 'oauth/authorizations'
end
private
def storage_host_var