Skip to content

Commit

Permalink
Merge pull request #6575 from ValentinnDimitroff/fix/redirect-to
Browse files Browse the repository at this point in the history
Fix resolveRedirectTo linkToRecord utilization
  • Loading branch information
fzaninotto authored Sep 11, 2021
2 parents 2373091 + 21b64f7 commit a2163b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/util/resolveRedirectTo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default (redirectTo, basePath: string, id?, data?) => {
case 'edit':
return linkToRecord(basePath, id);
case 'show':
return `${linkToRecord(basePath, id)}/show`;
return linkToRecord(basePath, id, 'show');
default:
return redirectTo;
}
Expand Down

0 comments on commit a2163b9

Please sign in to comment.