diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index da8d43c95..344267ef7 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -108,6 +108,7 @@ async function search() { let targetUrl; if (path.endsWith('/list')) targetUrl = path.replace('/list', `/${targetId}/summary`); + if (path.endsWith('-list')) targetUrl = path.replace('-list', `/${targetId}/summary`); else if (path.includes(':id')) targetUrl = path.replace(':id', targetId); await router.push({ path: targetUrl }); diff --git a/src/router/modules/itemType.js b/src/router/modules/itemType.js index 32bd63690..3609b6688 100644 --- a/src/router/modules/itemType.js +++ b/src/router/modules/itemType.js @@ -1,7 +1,7 @@ import { RouterView } from 'vue-router'; export default { - path: '/item-type', + path: '/item/item-type', name: 'ItemType', meta: { title: 'itemType',