Skip to content

Commit

Permalink
Use addPrefixPath in Logo component
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Mar 7, 2024
1 parent c50341b commit 61d96d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/volto/src/components/theme/Logo/Logo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useSelector, useDispatch } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { getNavroot } from '@plone/volto/actions';
import {
addPrefixPath,
flattenToAppURL,
hasApiExpander,
getBaseUrl,
Expand Down Expand Up @@ -48,7 +49,10 @@ const Logo = () => {
const navRootPath = flattenToAppURL(navroot?.navroot?.['@id']) || '/';

return (
<a href={navRootPath} aria-label={intl.formatMessage(messages.home)}>
<a
href={addPrefixPath(navRootPath)}
aria-label={intl.formatMessage(messages.home)}
>
<Image
src={
site['plone.site_logo']
Expand Down

0 comments on commit 61d96d2

Please sign in to comment.