Source link opens in a new tab

This commit is contained in:
2026-09-19 00:49:11 -07:00
parent 2d2b551d46
commit 3fec79545c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { sourceDownloadUrl } from '@/lib/sourceDownload';
export function SourceLink({ className }: { className?: string }) { export function SourceLink({ className }: { className?: string }) {
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<a href={sourceDownloadUrl()} download className={className}> <a href={sourceDownloadUrl()} target="_blank" rel="noopener noreferrer" className={className}>
{t('source.download', 'Source code of this version ({{id}}), AGPL-3.0', { id: __SOURCE_ID__ })} {t('source.download', 'Source code of this version ({{id}}), AGPL-3.0', { id: __SOURCE_ID__ })}
</a> </a>
); );
+1 -1
View File
@@ -217,7 +217,7 @@ export function TopBar() {
)} )}
<DropdownMenuItem asChild> <DropdownMenuItem asChild>
<a href={sourceDownloadUrl()} download> <a href={sourceDownloadUrl()} target="_blank" rel="noopener noreferrer">
<FileCode className="mr-2 h-4 w-4" /> <FileCode className="mr-2 h-4 w-4" />
{t('source.menu', 'Source code (AGPL-3.0)')} {t('source.menu', 'Source code (AGPL-3.0)')}
</a> </a>