mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-12 04:24:24 +01:00
🪟 fix: Update Link Target to Open in Separate Tabs (#11669)
`_new` is not a recognized keyword for the `target` attribute. While browsers treat it as a named window, `_blank` is the standard value for opening links in a new tab/window.
This commit is contained in:
parent
e646a3615e
commit
8da3c38780
2 changed files with 1 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ export const a: React.ElementType = memo(({ href, children }: TAnchorProps) => {
|
|||
}, [user?.id, href]);
|
||||
|
||||
const { refetch: downloadFile } = useFileDownload(user?.id ?? '', file_id);
|
||||
const props: { target?: string; onClick?: React.MouseEventHandler } = { target: '_new' };
|
||||
const props: { target?: string; onClick?: React.MouseEventHandler } = { target: '_blank' };
|
||||
|
||||
if (!file_id || !filename) {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ const MarkdownLite = memo(
|
|||
]}
|
||||
/** @ts-ignore */
|
||||
rehypePlugins={rehypePlugins}
|
||||
// linkTarget="_new"
|
||||
components={
|
||||
{
|
||||
code: codeExecution ? code : codeNoExecution,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue