diff --git a/src/platforms/Gitea/index.ts b/src/platforms/Gitea/index.ts index 44b7528..783b18f 100644 --- a/src/platforms/Gitea/index.ts +++ b/src/platforms/Gitea/index.ts @@ -68,7 +68,7 @@ function getUrlForRedirect( // `path => path.includes('#') ? path.replace(/#/g, '%23') : '...' return `https://${ window.location.host - }/${userName}/${repoName}/${type}/${branchName}/${path + }/${userName}/${repoName}/src/branch/${branchName}/${path .split('/') .map(encodeURIComponent) .join('/')}` diff --git a/src/utils/hooks/usePJAX.ts b/src/utils/hooks/usePJAX.ts index 5bcc62e..f3c26fa 100644 --- a/src/utils/hooks/usePJAX.ts +++ b/src/utils/hooks/usePJAX.ts @@ -8,6 +8,8 @@ const config: Config = { '.repository-content', // gitee '#git-project-content', + // gitea + '.repository > .ui.container' ], update: { css: false,