title: rails devise This webpage has a redirect loop
body: <p>I have used the following route</p>
  
  <pre><code>  devise_for :users, path: '', path_names: { sign_in: 'login', sign_out: 'logout', registration: 'signup', sign_up: 'signup'}
  
    devise_scope :user do
      root to: 'devise/registrations#new'
      get 'signup', to: 'devise/registrations#new'
    end
  </code></pre>
  
  <p>As of above when I run localhost:3000 it will show registration page. But once I login/register using devise gem it redirect again back to root path so causing the following redirect loop How can I customize devise to redirect specific page after login.</p>