Exposing full content path on Publish

Avatar

Avatar
Validate 1
Level 1
Keerthi97
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Keerthi97
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Keerthi97
Level 1

20-06-2021

Hi All,

We had properly implemented the maps configuration to show the short URL in publish on dev environment  inspite it is showing the full content path in the browser?

Could you please suggest your thoughts on this 

Note:Mapping configuration working as expected on stage and prod.

 

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 7

21-06-2021

Hi @Keerthi97 ,

 

If I understood your question, your HTML mark-up (links on the page are still showing full path). In that case, we need to understand one thing-

 

Below can be options to short the URL inside mark-up-

 

  • Sling mapping (etc/map) has been created

               OR

  • Sling Resource Resolver Factory has been configured to make the URL short

               OR

  • Have written custom Sling rewriter link transformer, which  traverses the web page and shorts all URLs.

 

Apache mod_rewrite is out of scope since it only rewrites incoming requests, and does not rewrite inside HTML mark-up.

 

Now considering you have mentioned about etc/map, so I would suggest to check below URL on each environment and verify if the redirects look fine-

 

http://<HOST>:<PORT>/system/console/jcrresolver

 

Reference videos to understand the concept-

https://www.youtube.com/watch?v=zcKwRTZ78_Y

https://www.youtube.com/watch?v=0fM2vUEj2bA

Answers (2)

Answers (2)

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

21-06-2021

@Keerthi97  - To cross check, can you verify if you are giving absolute path in the field mapping w.r.t stage and prod URL  

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

573 likes

Total Posts

728 posts

Correct reply

240 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

573 likes

Total Posts

728 posts

Correct reply

240 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

21-06-2021

Hi @Keerthi97,

Given that it works in Stage and PROD, I suggest to compare all possible configurations at

  • AEM instance level (etc/map package + Resource Resolver OSGI Configuration -> URL Mapping entry + vanity url if any) and
  • Webserver level (Apache rewrites) 

Also, check the dispatcher log (set at debug level) and access.log of both webserver and AEM instance as you access the page.