diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 37770beb36c7c30168ab057e12daeba072ed935b..7d001e656db048b54a15f8b3a1744ab2afafe2ac 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -164,8 +164,8 @@ const state = reactive({ query: route.query.query || '', repo: route.query.repo || '', id: route.params.id, - branch: repoItem.branch, - gitPath: repoItem.url + branch: route.query.branch || repoItem.branch, + gitPath: route.query.gitPath || repoItem.url }) useHead({