Since exrm deployments usually don't include Mix and there's no reason to have Mix in production, I think doing this not only makes the port flexible, but also the host. The location header doesn't need to include those anyway unless you access the form from elsewhere, and in that case using the Plug.Conn values is wrong too.
Since exrm deployments usually don't include Mix and there's no reason to have Mix in production, I think doing this not only makes the port flexible, but also the host. The location header doesn't need to include those anyway unless you access the form from elsewhere, and in that case using the
Plug.Conn
values is wrong too.