Skip to content

Commit c4e7554

Browse files
committed
Form component: Add support for redirect_to in the controller.
Analogue to #317.
1 parent 23122ac commit c4e7554

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/concepts/matestack/ui/core/form/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const componentDef = {
137137
&& self.componentConfig["success"]["transition"]["follow_response"] === true
138138
&& self.$store != undefined
139139
) {
140-
let path = response.data["transition_to"]
140+
let path = response.data["transition_to"] || response.request.responseURL
141141
self.$store.dispatch('navigateTo', {url: path, backwards: false})
142142
return;
143143
}

vendor/assets/javascripts/dist/matestack-ui-core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/assets/javascripts/dist/matestack-ui-core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)