Changing relative links to absolute in JSS for “Render as HTML” components
As you know Sitecore JSS provides handy “Render as HTML” option that allows to use Sitecore components in JSS that are rendered on the fly…
Wiki topics:
🌐 · Web Development
Changing relative links to absolute in JSS for “Render as HTML” components
As you know Sitecore JSS provides handy “Render as HTML” option that allows to use Sitecore components in JSS that are rendered on the fly with layout engine.
Sometimes if you are using JSS “Render as HTML” feature your RTE component might have a link inside which might be rendered incorrectly in a multisite environment.
This small gist might help you to fix the links using page props plugin:
[embed]
It would identify all the renderings added as “render as html” and fix the links so they are following right hostname and site.
메타데이터
- post_id
- c965bc31f036
- slug
- changing-relative-links-to-absolute-in-jss-for-render-as-html-components-c965bc31f036
- url
- https://medium.com/@jackspektor/changing-relative-links-to-absolute-in-jss-for-render-as-html-components-c965bc31f036
- canonical_url
- https://medium.com/@jackspektor/changing-relative-links-to-absolute-in-jss-for-render-as-html-components-c965bc31f036
- author_url
- https://medium.com/@jackspektor
- status
- ok
- fetched_at
- 2026-06-25 07:00:49