From 21b64f7e9b1018234dc0b5259ea43c3d787278a9 Mon Sep 17 00:00:00 2001 From: Valentin Dimitroff <26602880+ValentinnDimitroff@users.noreply.github.com> Date: Fri, 10 Sep 2021 22:57:28 +0300 Subject: [PATCH] Utilize linkToRecord to the fullest --- packages/ra-core/src/util/resolveRedirectTo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/util/resolveRedirectTo.ts b/packages/ra-core/src/util/resolveRedirectTo.ts index da5ab558a73..8ac7d5e9682 100644 --- a/packages/ra-core/src/util/resolveRedirectTo.ts +++ b/packages/ra-core/src/util/resolveRedirectTo.ts @@ -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; }