Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

redirectTarget anomaly 6.0 to 6.2 upgrade.

Avatar

Level 3

Hello  friends.

I am facing an issue in AEM 6.0 to 6.2 upgrade project.

We have some pages tagged with redirect link (jcr:content/redirectTarget)

redirect link works fine on Author. However on Publisher ?wcmmode=disabled is getting appended in the URL.

The actual URL in the redirectTarget does not have wcmmode specified.

There is  no dispatcher involved. there is no jcr resource resolver configuration which can embed ?wcmmode=disabled to the URL.

This functionality works fine in AEM 6.0 Publisher.  But not sure why it does not work on 6.2 Pub.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Opened a daycare ticket. Daycare has given a fix.

As temporary workaround, Please remove [1] (Line 49) from /libs/foundation/components/page/page.jsp or create an overlay for this for now and this should help resolve this issue.

// include wcmmode=disabled to redirected url if original request also had that parameter 

if (wcmModeIsDisabled) {

       redirectPath += ((redirectPath.indexOf('?') == -1) ? '?' : '&') + "wcmmode=disabled";

}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

Opened a daycare ticket. Daycare has given a fix.

As temporary workaround, Please remove [1] (Line 49) from /libs/foundation/components/page/page.jsp or create an overlay for this for now and this should help resolve this issue.

// include wcmmode=disabled to redirected url if original request also had that parameter 

if (wcmModeIsDisabled) {

       redirectPath += ((redirectPath.indexOf('?') == -1) ? '?' : '&') + "wcmmode=disabled";

}