fix(ui): open GitHub 'Need Help?' links in new tab

Add target="_blank" and rel="noopener noreferrer" to GitHub issue
links in the admin dashboard UI to prevent navigating away from the
current page.

Affected components:
- AddModelForm: 'Need Help?' link
- AddAutoRouterTab: 'Need Help?' link
- AddCredentialModal: 'Need Help?' link
- EditCredentialModal: 'Need Help?' link
- ReuseCredentialsModal: 'Need Help?' link
This commit is contained in:
gateremark 2026-03-25 19:00:27 +03:00
parent 10a48f7655
commit 1584514373
5 changed files with 5 additions and 5 deletions

View file

@ -363,7 +363,7 @@ const AddModelForm: React.FC<AddModelFormProps> = ({
)}
<div className="flex justify-between items-center mb-4">
<Tooltip title="Get help on our github">
<Typography.Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Typography.Link>
<Typography.Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Typography.Link>
</Tooltip>
<div className="space-x-2">
<Button onClick={handleTestConnection} loading={isTestingConnection}>

View file

@ -393,7 +393,7 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({ form, handleOk, acc
<div className="flex justify-between items-center mb-4">
<Tooltip title="Get help on our github">
<Typography.Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Typography.Link>
<Typography.Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Typography.Link>
</Tooltip>
<div className="space-x-2">
<Button onClick={handleTestConnection} loading={isTestingConnection}>

View file

@ -94,7 +94,7 @@ const AddCredentialsModal: React.FC<AddCredentialsModalProps> = ({ open, onCance
{/* Modal Footer */}
<div className="flex justify-between items-center">
<Tooltip title="Get help on our github">
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
</Tooltip>
<div>

View file

@ -127,7 +127,7 @@ export default function EditCredentialsModal({
{/* Modal Footer */}
<div className="flex justify-between items-center">
<Tooltip title="Get help on our github">
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
</Tooltip>
<div>

View file

@ -61,7 +61,7 @@ const ReuseCredentialsModal: React.FC<ReuseCredentialsModalProps> = ({
{/* Modal Footer */}
<div className="flex justify-between items-center">
<Tooltip title="Get help on our github">
<Link href="https://github.com/BerriAI/litellm/issues">Need Help?</Link>
<Link href="https://github.com/BerriAI/litellm/issues" target="_blank" rel="noopener noreferrer">Need Help?</Link>
</Tooltip>
<div>