Skip to content

Commit

Permalink
Use request id to redirect to details page
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-blazhko committed Sep 11, 2024
1 parent 2467f99 commit b0a6479
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/routes/RequestsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,8 +1129,16 @@ class RequestsRoute extends React.Component {
const mode = query.get('mode');

return mutator.POST(requestData)
.then(() => {
this.closeLayer();
.then((res) => {
const {
match: {
path,
},
history,
} = this.props;

history.push(`${path}/view/${res?.primaryRequestId || res?.id}`);

this.context.sendCallout({
message: isDuplicateMode(mode)
? (
Expand Down

0 comments on commit b0a6479

Please sign in to comment.