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 });