0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

route_to should take precedence

Dieser Commit ist enthalten in:
Angus McLeod 2019-08-29 09:53:24 +10:00
Ursprung ad18ec9809
Commit f4a5b49446

Datei anzeigen

@ -162,7 +162,7 @@ class CustomWizard::Builder
if updater.errors.empty?
if final_step
updater.result[:redirect_on_complete] = data['redirect_on_complete'] || data['route_to']
updater.result[:redirect_on_complete] = data['route_to'] || data['redirect_on_complete']
elsif route_to = data['route_to']
updater.result[:redirect_on_next] = route_to
end