Content path in pathfield/pathbrowser is not working in AEM Publish although content path valid

Avatar

Avatar
Validate 1
Level 2
samsundar23
Level 2

Likes

4 likes

Total Posts

62 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
samsundar23
Level 2

Likes

4 likes

Total Posts

62 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 3
Give Back
View profile
samsundar23
Level 2

30-09-2020

Im authoring the content path in pathfield in my author instance which is a valid content path.
After publishing, in publish instance its not rendering to that html content page after I click the link.
When I observed its due to the .html is not appending in the content path.

  • I don't want to add .html in my component as we have huge number of components to change.
  • I want to handle in AEM itself and I don't want to use apache rewrite url to append .html.
  • I have gone through etc/map but I'm not sure how to use it to perform the .html getting appended in the content path.

Kindly pour in your thoughts. I need some quick fix for this to work.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Level 4
Jineet_Vora
Level 4

Likes

42 likes

Total Posts

45 posts

Correct reply

22 solutions
Top badges earned
Give Back
Ignite 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back
Level 4
Jineet_Vora
Level 4

Likes

42 likes

Total Posts

45 posts

Correct reply

22 solutions
Top badges earned
Give Back
Ignite 1
Boost 5
Boost 3
Boost 25
View profile
Jineet_Vora
Level 4

30-09-2020

Hello @samsundar23,

You can do the following to achieve this:
Create a mapping in /etc/map/http of your AEM publish with below node and properties:

tempsnip.png

 

This will ensure it will work with both paths with .html extension and paths without .html extension.

Jineet

Answers (0)