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
BedrockMission!

Learn More

View all

Sign in to view all badges

Reverse mapping is not working

Avatar

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ajits55484825
Level 2

15-11-2018

I am facing issue were long urls are not getting shortened on page. we have used page.getPath method to place page url in href. But it is showing entire path starting from /content intead of short urls.

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

15-11-2018

Avatar

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ajits55484825
Level 2

15-11-2018

didnt helped. Tested with above changes.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

15-11-2018

Can you show your etc reverse mapping, I tested same for we-retail it is working.

Avatar

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ajits55484825
Level 2

15-11-2018

1622370_pastedImage_0.png

Avatar

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ajits55484825
Level 2

15-11-2018

After above changes still giving entire path (/content/we-retail/us/en) on page.getpath

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,275 likes

Total Posts

3,153 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

15-11-2018

Can you make changes like below:

4

sling:internalRedirect

String

/content/we-retail/(.*).html

5

sling:match

String

localhost.4502/$1.html

f

Above will remove /content/we-retail from all links which starts with /content/we-retail

In your config it seems you did reverse mapping if there is a link like <a href="https://forums.adobe.com/content/we-retail/">Link</a> will be render like <a href="https://forums.adobe.com/">Link</a>

Avatar

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ajits55484825
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ajits55484825
Level 2

16-11-2018

Thanks this is working fine on my local vanilla instance. But on higher env. with my application code deployed it is not working. Any pointers which might be stopping this to work?