1

i created a blog post using OOTB journal component, using below url. http://localhost:4502/content/community-components/en/journal.html

after creating blog post, i seen below URL for Blog Post.

http://localhost:4502/content/community-components/en/journal.entry.html/2017/07/19/sample_title-7KtT.html

Now, i want to understand how can we remove .entry.html from above Blog Post URL.

FYI: I'm using AEM 6.2

Thanks in advance.

Raj Kumar Samala
  • 561
  • 12
  • 31

1 Answers1

1

AEM (Communities) blog posts OOTB URL format is there to help with the functioning of author and publisher environment but agreeably it is not user friendly in any form. You have the following options to fix it:

  1. Use Apache rewrite rules on your dispatcher level (or the equivalent layer in other respective platform) to get rid of .journal.entry.html from the URL
  2. Use sling mappings with RegEx to map to beautify the URLs

Both of these options have their uses and issues. You will need to evaluate the best approach for your infrastructure and environment. In practice, it's better to map a sub-domain (blogs.example.com) or a virtual path (example.com/blogs) and map the journal entries to it but all of this depends on the site structure.

Imran Saeed
  • 3,414
  • 1
  • 16
  • 27