您如何调整标准的 Authlogic 应用程序,而不是每次都使用主页,而是将用户引导到他们试图访问的任何链接?
示例 1 - 标准登录按预期工作
User goes to app.com
Goes through 'login' process
Redirected to home_url
示例 2 - 用户尝试访问特定页面
User goes to app.com/specific_link
Redirected to login_url for authentication
Expects to be sent back to /special_link; instead sent to home_url
如何在示例 2 中将用户返回到他们想要的链接?