diff --git a/web/src/pages/Repository/EmptyRepositoryInfo.tsx b/web/src/pages/Repository/EmptyRepositoryInfo.tsx index 11a7d030d..40c5e3f45 100644 --- a/web/src/pages/Repository/EmptyRepositoryInfo.tsx +++ b/web/src/pages/Repository/EmptyRepositoryInfo.tsx @@ -115,7 +115,7 @@ export const EmptyRepositoryInfo: React.FC> = URL: ( { - history.push(currentUserProfileURL) + history.push(standalone ? routes.toCODEUserProfile() : currentUserProfileURL) }}> here @@ -142,7 +142,7 @@ export const EmptyRepositoryInfo: React.FC> = source={getString('repoEmptyMarkdownExisting') .replace(/REPO_URL/g, repoMetadata.git_url || '') .replace(/REPO_NAME/g, repoMetadata.uid || '') - .replace(/CREATE_API_TOKEN_URL/g, currentUserProfileURL || '') + .replace(/CREATE_API_TOKEN_URL/g, standalone ? routes.toCODEUserProfile() : currentUserProfileURL || '') .replace(/DEFAULT_BRANCH/g, repoMetadata.default_branch || '')} />