Open arnolfontalvo opened 6 years ago
I have this configuration on mi config.ru file
require 'rack/rewrite' use Rack::Rewrite do r302 %r{/marketing/([^\?])(\?.)*}, '/$1' end
I want make rails write log before redirect.
Example: this route http://limbiq.test:3000/marketing/admin/login will redirect to http://limbiq.test:3000/admin/login, but not log information is writing. do you have any Idea to do this?
Should be possible by supplying a Proc like so:
https://github.com/jtrupiano/rack-rewrite#arbitrary-rewriting
I have this configuration on mi config.ru file
require 'rack/rewrite' use Rack::Rewrite do r302 %r{/marketing/([^\?])(\?.)*}, '/$1' end
I want make rails write log before redirect.
Example: this route http://limbiq.test:3000/marketing/admin/login will redirect to http://limbiq.test:3000/admin/login, but not log information is writing. do you have any Idea to do this?