Skip to content

Commit

Permalink
Utilize linkToRecord to the fullest
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinnDimitroff committed Sep 10, 2021
1 parent 2373091 commit 21b64f7
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 21b64f7

Please sign in to comment.