Describe the bug This issue is reported by customer.
When a Spartacus page link is contained in a ParagraphComponent, the link could NOT be loaded under SmartEdit succcessfully.
Tell us the version of Spartacus
To Reproduce Steps to reproduce the behavior:
Maintain cms.components.allowUnsafeJavaScript=true
in hybris\config\local.properties
,then start server.
In its property field, maintain content as:
<div><a href="/Open-Catalogue/Office-Equipment%252C-Supplies-%2526-Accessories/Hand-Tools/Measuring-%2526-Layout-Tools/c/1358">Jerry Link</a></div>
Save the change, it will appear in the footer area under footer navigation area, as below:
Error:
SmartEdit hangs there:
SmartEdit is having difficulty loading the page. The page is either not compatible with SmartEdit or connection to it has been lost. Wait for the page to load or disable editing by going to Preview mode.
However, if we directly click the same OOTB navigation link which is NOT
within a paragraphComponent, the link could be opened in SmartEdit without errors:
Desktop (please complete the following information):
I made some comparison between two scenarios: link contained in ParagraphComponent vs OOTB navigation link and observed two differences.
behavior | link contained in ParagraphComponent | OOTB navigation link |
---|---|---|
href attribute rendered in html | href="/Open-Catalogue/Office-Equipment%252C-Supplies-%2526-Accessories/Hand-Tools/Measuring-%2526-Layout-Tools/c/1358" | href="/powertools-spa/en/USD/Open-Catalogue/Office-Equipment%252C-Supplies-%2526-Accessories/Hand-Tools/Measuring-%2526-Layout-Tools/c/1358" |
screenshot | ||
cmsTicketId appended in CMS request? | no:https://localhost:9002/occ/v2/powertools-spa/cms/pages?pageType=CategoryPage&code=1358&lang=en&curr=USD | yes:https://localhost:9002/occ/v2/powertools-spa/cms/pages?pageType=CategoryPage&code=1355&lang=en&curr=USD&cmsTicketId=6478827360217344df347bfa-b4c5-4210-98a1-c35b92a76ce1 |