Possibly this isn't an SXA specific question, but I would like to know if there is a way to set a hyperlink in the Sitecore RTE (Rich text editor) on a data attribute instead of the standard
I have figured out how to make SXA overlays show via data attribute, but the editing experience becomes bad as if you change the link URL, it reverts the data attribute back to
- Open RTE and set a link. Html looks like:
<a href="~/link.aspx?_id=247BB73FC91541F7B12226435637FB97&_z=z" class="btn-md">Click here to open modal</a>
- Manually modify it to be a data attribute:
<a data-overlay-target="~/link.aspx?_id=247BB73FC91541F7B12226435637FB97&_z=z" role="button">Click here to subscribe</a>
- If I change the link in the RTE it reverts back to be like 1. It does keep the previously selected link though which is great. I just need it to not revert the
The SEO impact here is some modal pages are not to be crawled by search engines on their own.