My Devise + Omniauth setup currently uses the following path to log a user in using Facebook:
user_omniauth_authorize_path(:facebook)
I have a partial that displays a list of items, each item having a link that:
1) logs the user in with the above path if not logged in
2) links to the item show page if they are logged in
If not logged in, I'd like to modify #1 to redirect the item show page of the particular item that was clicked on after login.
This would require passing the id of the item into the Omniauth controller somehow.
Any suggestions?