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.
Kindly pour in your thoughts. I need some quick fix for this to work.
Thanks
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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:
This will ensure it will work with both paths with .html extension and paths without .html extension.
Jineet
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:
This will ensure it will work with both paths with .html extension and paths without .html extension.
Jineet
Hi @yjinee94 ,
Thanks for the info.
With or without the html the content is coming up.
My requirement is to append .html after moving to the corresponding page on clicking the pathfield link.
For instance, If I have authored /content/xxx-bbb/bunk/about-us in pathfield and
I should be moving to /content/xxx-bbb/bunk/about-us.html in my publish instance.
Is there any way to append .html as well using the etc/map option which you have suggested ?
Please help.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @yjinee94,
Please find the below screenshot - I checked in both author and publish instance for the below section and nothing is checked in terms of extension less URLs which are coming up.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Hi @Jineet_Vora
Thanks a lot for all your inputs.
Your recommendations are working for dispatcher pages which has /content in it.
Can you provide your recommendation for my dispatcher page if its going to have only short URLs as below;
Any sling:internalRedirect (or) sling:match change which could make it work for the short URLs too.
Kindly help.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @Jineet_Vora
Your recommendations are spot-on. (Y)
I assume there is no /content in the dispatcher URLs which is making it not work.
To be specific there is no common keyword I thought to add in match and internalRedirect to make it work.
Is there any change which i could make in the sling: match or sling: internalRedirect which could make it work generically.
My dispatcher URLs are not working.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
I think your dispatcher is already stripping out /content which is creating a conflict mapping it with the rule we have defined on publisher.
For simplicity is it recommended to keep all URL manipulation at one place, meaning: if you are already using dispatcher to strip out base URL path then please use re-write rule on dispatcher only.
Jineet
Views
Replies
Total Likes
Exactly the same problem as you said.
Need some work-around for this issue.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Hi @Jineet_Vora
Can you explain about these rules which is already in the path
/apps/environment/publisher/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.config
When I hit the URL https://publish1.dev.net/content/shared/investing/2018/03/exchange-traded-funds-investor-numbers-inc...
its redirected to
Not sure about the relation between the rule and the redirection happening.
Please help.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Hi @Jineet_Vora
Apologize to bother you again.
I want to append .html at the end of any /content path using resource.resolver.mapping available in the
config (/apps/environment/publisher/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.config)
Any way to do it ? Please help.
Thanks
SHYAMSUNDAR TK
Views
Replies
Total Likes
Thanks @Jineet_Vora for all your recommendations.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies