I am using devise to handle registration and authentication.
My entire application is divided into 2 sub-domains. secure.host.dev
and main.host.dev
.
When user visit http://main.host.dev/users
, if not authenticated, must be redirected to http://secure.host.dev/host
. This is working perfectly.
The problem is with the redirect back after login. It should redirect_back to http://main.host.dev/users
and not to http://secure.host.dev/users
as it is now.
How can do that? I did not find any documentation about this