sign_in_and_redirect documentation states that it only calls the after_sign_in_path_for method if no stored location was set. But the actual implementation always calls after_sign_in_path_for, which in it's default implementation (but not in all overriden versions) looks up the stored location first.
sign_in_and_redirect
documentation states that it only calls theafter_sign_in_path_for
method if no stored location was set. But the actual implementation always callsafter_sign_in_path_for
, which in it's default implementation (but not in all overriden versions) looks up the stored location first.See https://github.com/mastodon/mastodon/pull/24073 as an example of where this was the case.