2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-04 14:28:48 +00:00

Fix for links in notification drawer (#8435)

This commit is contained in:
Oliver 2024-11-06 08:15:19 +11:00 committed by GitHub
parent f470d30493
commit 93a8090e99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,7 @@ import { ApiEndpoints } from '../../enums/ApiEndpoints';
import { ModelType } from '../../enums/ModelType';
import { navigateToLink } from '../../functions/navigation';
import { getDetailUrl } from '../../functions/urls';
import { base_url } from '../../main';
import { apiUrl } from '../../states/ApiState';
import { useUserState } from '../../states/UserState';
import { Boundary } from '../Boundary';
@ -66,7 +67,7 @@ function NotificationEntry({
>
<Stack gap={2}>
<Anchor
href={link}
href={link ? `/${base_url}${link}` : '#'}
underline="hover"
target="_blank"
onClick={(event: any) => {