mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-04 06:18:48 +00:00
Fix for links in notification drawer (#8435)
This commit is contained in:
parent
f470d30493
commit
93a8090e99
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user