feat: [code-741]: fix token generation links (#316)

This commit is contained in:
Calvin Lee 2023-08-15 18:13:14 +00:00 committed by Harness
parent ef1f04eb5b
commit 225ca6332a

View File

@ -115,7 +115,7 @@ export const EmptyRepositoryInfo: React.FC<Pick<GitInfoProps, 'repoMetadata'>> =
URL: ( URL: (
<a <a
onClick={() => { onClick={() => {
history.push(currentUserProfileURL) history.push(standalone ? routes.toCODEUserProfile() : currentUserProfileURL)
}}> }}>
here here
</a> </a>
@ -142,7 +142,7 @@ export const EmptyRepositoryInfo: React.FC<Pick<GitInfoProps, 'repoMetadata'>> =
source={getString('repoEmptyMarkdownExisting') source={getString('repoEmptyMarkdownExisting')
.replace(/REPO_URL/g, repoMetadata.git_url || '') .replace(/REPO_URL/g, repoMetadata.git_url || '')
.replace(/REPO_NAME/g, repoMetadata.uid || '') .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 || '')} .replace(/DEFAULT_BRANCH/g, repoMetadata.default_branch || '')}
/> />
</Container> </Container>