Hi Everyone,
I'm trying to add the page path with ID in a list component using fixed list but after saving the change, the link is getting removed from the list.
Example :- if I authored
/content/site/country/language/pagename#dummy
it is getting removed
I know that the core component’s list model class is filtering out all such paths but is there any way to fixed this issue?
Solved! Go to Solution.
Views
Replies
Total Likes
@Rajesh_KumarBa @Yes, it will require to overlay the List componen. Copy OOTB model in you core folder and update required code for not to have resolver.map() which will allow us to have /id in url.
@Rajesh_KumarBa It check for the valid link with map and than save to crx/de. Please create custom sling model for your use case referring OOTB sling model
OR
you can add ID as /content/site/country/language/pagename/#dummy or /content/site/country/language/pagename?id=dummy
the authoring trick didn't work,
but is there any way I can override the isExternalLink method of LinkManagerImpl class
https://github.com/adobe/aem-core-wcm-components/blob/release/2.22.10/bundles/core/src/main/java/com...
if I can categorize "/content/site/country/language/pcagename#dummy" as an external URL it will work fine
@Rajesh_KumarBa @Yes, it will require to overlay the List componen. Copy OOTB model in you core folder and update required code for not to have resolver.map() which will allow us to have /id in url.
@Rajesh_KumarBa Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies