From c02dcf622a617fbca7f697b28684ac611c013d89 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 8 May 2024 13:22:21 +0200 Subject: [PATCH] fix: refs #6891 correct redirection --- src/composables/useRedirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useRedirect.js b/src/composables/useRedirect.js index 57233bea0..c1470718b 100644 --- a/src/composables/useRedirect.js +++ b/src/composables/useRedirect.js @@ -15,7 +15,7 @@ export default function useRedirect() { const to = data.length === 1 - ? path.replace(/\/(list|-list|:id)/, `/${data[0].id}`) + ? path.replace(/\/(list|:id)|-list/, `/${data[0].id}`) : path.replace(/:id.*/, ''); router.push({ path: to });