plataformatec/devise — Issue #1567: confirmation_url strips subdomains from request host (1.5.2)
Author: mehayden
Created: 2012-01-13 20:13:10+00:00
State: open

I am running 2 instances of the same app one on mydomain.com and one on dev.mydomain,com. A confirmation email is sent from the app on the dev server will try to confirm on the other server since the subdomain is stripped. Is this the desired behavior which would disallow running multiple apps from the same domain?

A possible workaround would be to specify the host in the template:

confirmation_url(@resource, :host=>request.host, :confirmation_token => @resource.confirmation_token)