Skip to content

Commit 175cdc0

Browse files
Open Project Context URL in new tab (#16521)
Signed-off-by: Siddhant Khare <[email protected]>
1 parent 55dc596 commit 175cdc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/dashboard/src/projects/Project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default function ProjectsPage() {
197197
subtitle={
198198
<h2 className="tracking-wide">
199199
View recent active branches for{" "}
200-
<a className="gp-link" href={project?.cloneUrl!}>
200+
<a target="_blank" rel="noreferrer noopener" className="gp-link" href={project?.cloneUrl!}>
201201
{toRemoteURL(project?.cloneUrl || "")}
202202
</a>
203203
.

components/dashboard/src/projects/ProjectListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const ProjectListItem: FunctionComponent<ProjectListItemProps> = ({ proje
6666
/>
6767
</div>
6868
</div>
69-
<a href={project.cloneUrl.replace(/\.git$/, "")}>
69+
<a target="_blank" rel="noreferrer noopener" href={project.cloneUrl.replace(/\.git$/, "")}>
7070
<p className="hover:text-gray-600 dark:hover:text-gray-400 dark:text-gray-500 pr-10 truncate">
7171
{toRemoteURL(project.cloneUrl)}
7272
</p>

0 commit comments

Comments
 (0)