heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.89k stars 5.54k forks source link

sign_in_and_redirect implementation follows it's documentation #5587

Open CSDUMMI opened 1 year ago

CSDUMMI commented 1 year ago

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.

See https://github.com/mastodon/mastodon/pull/24073 as an example of where this was the case.