We use a catch-all route in SomeController that incorrectly catch
redirects to external websites when we use the ‘redirect_to’ method.
Any help on how to avoid that is greatly appreciated.
This is our routes:
resources :some_controller, :path => ‘/’ do
This is an action that does a redirect to an external website:
class SomeController < ApplicationController
#should not be caught by the some_controller route, but is caught by
redirect_to “https://example.com”, :status => :found