Skip to content

Commit b6bde90

Browse files
authored
Merge pull request #218 from anushka-codes1/fix-footer-url-hyperlink-191
Fix: Hyperlink URL in site footer trademark text
2 parents 7943c3a + 88656cd commit b6bde90

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

frontend/src/components/layout/Footer/SiteFooter.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const messages = defineMessages({
4949
footerInfos: {
5050
id: 'Footer infos',
5151
defaultMessage:
52-
'The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution-ShareAlike 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see https://plone.org/foundation/logo. All other trademarks are owned by their respective owners.',
52+
'The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution-ShareAlike 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see <a href="https://plone.org/foundation/logo">https://plone.org/foundation/logo</a>. All other trademarks are owned by their respective owners.',
5353
},
5454
});
5555

@@ -163,9 +163,12 @@ const Footer = ({ pathanme }) => {
163163
<div className="logo">
164164
<Logo />
165165
</div>
166-
<div className="address">
167-
{intl.formatMessage(messages.footerInfos)}
168-
</div>
166+
<div
167+
className="address"
168+
dangerouslySetInnerHTML={{
169+
__html: intl.formatMessage(messages.footerInfos),
170+
}}
171+
/>
169172
</div>
170173
</Container>
171174
</div>

frontend/src/customizations/volto/components/theme/Footer/Footer.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const messages = defineMessages({
2020
footerInfos: {
2121
id: 'Footer infos',
2222
defaultMessage:
23-
'The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution-ShareAlike 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see https://plone.org/foundation/logo. All other trademarks are owned by their respective owners.',
23+
'The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution-ShareAlike 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see <a href="https://plone.org/foundation/logo">https://plone.org/foundation/logo</a>. All other trademarks are owned by their respective owners.',
2424
},
2525
cookieSettings: {
2626
id: 'Cookie settings',
@@ -224,9 +224,12 @@ const Footer = ({ intl }) => {
224224
<div className="logo">
225225
<Logo />
226226
</div>
227-
<div className="address">
228-
{intl.formatMessage(messages.footerInfos)}
229-
</div>
227+
<div
228+
className="address"
229+
dangerouslySetInnerHTML={{
230+
__html: intl.formatMessage(messages.footerInfos),
231+
}}
232+
/>
230233
</div>
231234
</Container>
232235
</div>

0 commit comments

Comments
 (0)