Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
route_to should take precedence
Dieser Commit ist enthalten in:
Ursprung
ad18ec9809
Commit
f4a5b49446
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren