Skip to content

Commit 59eb32b

Browse files
committed
implementing follow_response support for redirect_to (action component)
#288 (comment)
1 parent 782b5dc commit 59eb32b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const componentDef = {
4444
&& self.componentConfig["success"]["transition"]["follow_response"] === true
4545
&& self.$store != undefined
4646
) {
47-
let path = response.data["transition_to"];
47+
let path = response.data["transition_to"] || response.request.responseURL;
4848
self.$store.dispatch('navigateTo', {url: path, backwards: false});
4949
return;
5050
}

vendor/assets/javascripts/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/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)