Skip to content

Commit

Permalink
Fix for links in notification drawer (#8435)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored Nov 5, 2024
1 parent f470d30 commit 93a8090
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/components/nav/NotificationDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -66,7 +67,7 @@ function NotificationEntry({
>
<Stack gap={2}>
<Anchor
href={link}
href={link ? `/${base_url}${link}` : '#'}
underline="hover"
target="_blank"
onClick={(event: any) => {
Expand Down

0 comments on commit 93a8090

Please sign in to comment.