Skip to content

Commit

Permalink
Fix broken link to portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Apr 16, 2024
1 parent 5bd9a60 commit b106e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/2927.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix broken user portrait in personal tools menu. @davisagli
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Icon } from '@plone/volto/components';
import { getUser } from '@plone/volto/actions';
import { Pluggable } from '@plone/volto/components/manage/Pluggable';
import {
flattenToAppURL,
expandToBackendURL,
getBaseUrl,
userHasRoles,
} from '@plone/volto/helpers';
Expand Down Expand Up @@ -97,7 +97,7 @@ const PersonalTools = (props) => {
<div className={cx('avatar', { default: !user.portrait })}>
{user.portrait ? (
<img
src={flattenToAppURL(user.portrait)}
src={expandToBackendURL(user.portrait)}
alt={intl.formatMessage(messages.userAvatar)}
/>
) : (
Expand Down

0 comments on commit b106e4c

Please sign in to comment.