Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Page Property "Redirect" link is not modifying according to blueprints path on rollout

Avatar

Level 4

Hi,

I have a blueprint page "/content/xxx/main", when I rollout that page to live copy path "/content/xxx/og". All the content are sync with blueprint and also button,href links are updating as per live copies.

Ex:-<a href="/content/xxx/main"> when I rolledout, this link updated to <a href="/content/xxx/og"> according to live copy path and the redirect page property link is also rolled out  but not updating the redirect link according to the live copy.

Ex:- "/content/xxx/main" link on blueprint, when I rolled out it is showing "/content/xxx/main" in live copies also.

Did I miss any configuration because jcr content links are working fine but with page properties I am facing this issue.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @kbitra1998 

 

Create one OSGi config with name:

 

com.day.cq.wcm.msm.impl.actions.ReferencesUpdateActionFactory.xml and add the below config:

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
cq.wcm.msm.action.excludednodetypes="[cq:LiveSyncConfig,cq:BlueprintSyncConfig,cq:LiveSyncAction,cq:meta]"
cq.wcm.msm.action.excludedparagraphitems="[cq:propertyInheritanceCancelled]"
cq.wcm.msm.action.excludedprops="[jcr:.*,sling:.*,cq:(?!(redirectTarget)$).*]"/>

 

Create another OSGi config with name:

 

com.day.cq.wcm.msm.impl.actions.ContentUpdateActionFactory.xml and add the below config:

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
cq.wcm.msm.action.excludednodetypes="[cq:LiveSyncConfig,cq:BlueprintSyncConfig,cq:LiveSyncAction,cq:CatalogSyncConfig,cq:CatalogSyncAction,cq:meta]"
cq.wcm.msm.action.excludedparagraphitems="[cq:propertyInheritanceCancelled,dc:title]"
cq.wcm.msm.action.excludedprops="[jcr:(?!(title|description)$).*,sling:(?!(resourceType|resourceSuperType|alias)$).*,cq:(?!(designPath|template|lastTranslationUpdate|targetEngine|redirectTarget)$).*,publishCampaignId]"
cq.wcm.msm.action.ignoredMixin="[.*]"/>

 

This should resolve the issue. 

 

Hope this helps!

Thanks

View solution in original post

5 Replies

Avatar

Level 4

Redirect link is rolled out but link is not modifying according to live copies path.

I have already added cq:redirectTarget in the configMgr.

Avatar

Correct answer by
Community Advisor

Hi @kbitra1998 

 

Create one OSGi config with name:

 

com.day.cq.wcm.msm.impl.actions.ReferencesUpdateActionFactory.xml and add the below config:

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
cq.wcm.msm.action.excludednodetypes="[cq:LiveSyncConfig,cq:BlueprintSyncConfig,cq:LiveSyncAction,cq:meta]"
cq.wcm.msm.action.excludedparagraphitems="[cq:propertyInheritanceCancelled]"
cq.wcm.msm.action.excludedprops="[jcr:.*,sling:.*,cq:(?!(redirectTarget)$).*]"/>

 

Create another OSGi config with name:

 

com.day.cq.wcm.msm.impl.actions.ContentUpdateActionFactory.xml and add the below config:

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
cq.wcm.msm.action.excludednodetypes="[cq:LiveSyncConfig,cq:BlueprintSyncConfig,cq:LiveSyncAction,cq:CatalogSyncConfig,cq:CatalogSyncAction,cq:meta]"
cq.wcm.msm.action.excludedparagraphitems="[cq:propertyInheritanceCancelled,dc:title]"
cq.wcm.msm.action.excludedprops="[jcr:(?!(title|description)$).*,sling:(?!(resourceType|resourceSuperType|alias)$).*,cq:(?!(designPath|template|lastTranslationUpdate|targetEngine|redirectTarget)$).*,publishCampaignId]"
cq.wcm.msm.action.ignoredMixin="[.*]"/>

 

This should resolve the issue. 

 

Hope this helps!

Thanks

Avatar

Level 4

Thanks @Asutosh_Jena_ , issue is resolved but we need to enable the "update reference across nested live copies" in the com.day.cq.wcm.msm.impl.actions.ReferencesUpdateActionFactory.xml with your changes mentioned above.

Avatar

Level 4

Thanks @asutosh_jena , issue is resolved but we need to enable the "update reference across nested live copies" in the com.day.cq.wcm.msm.impl.actions.ReferencesUpdateActionFactory.xml with your changes mentioned above.