ref: master
plugins/orders_cycle/views/orders_cycle_plugin_cycle/new.js.erb
window.location.href = <%= url_for(action: :edit, id: @cycle.id).to_json %>