mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-13 11:26:42 +00:00
(cherry picked from commit f3ec708a28)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a57676faef
commit
91c134f752
@@ -15,7 +15,7 @@ import { type ReactNode, useCallback } from 'react';
|
||||
import { ModelInformationDict } from '@lib/enums/ModelInformation';
|
||||
import { ModelType } from '@lib/enums/ModelType';
|
||||
import { apiUrl } from '@lib/functions/Api';
|
||||
import { navigateToLink } from '@lib/functions/Navigation';
|
||||
import { getBaseUrl, navigateToLink } from '@lib/functions/Navigation';
|
||||
import type {
|
||||
ModelRendererDict,
|
||||
RenderInstanceProps
|
||||
@@ -219,7 +219,10 @@ export function RenderInlineModel({
|
||||
{prefix}
|
||||
{image && <Thumbnail src={image} size={18} />}
|
||||
{url ? (
|
||||
<Anchor href='' onClick={(event: any) => onClick(event)}>
|
||||
<Anchor
|
||||
href={`/${getBaseUrl()}${url}`}
|
||||
onClick={(event: any) => onClick(event)}
|
||||
>
|
||||
{primary}
|
||||
</Anchor>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user