7430_devToTest #388

Merged
alexm merged 282 commits from 7430_devToTest into test 2024-05-21 09:26:36 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit c02dcf622a - Show all commits

View File

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