Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

unable to resolve.entry.html from blog post URL using URL resource mapping

Avatar

Level 1

Hi All,

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-7Kt...

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

I added URL mapping Entry in Apache sling resource resolver Factory like below

/content/community-components/en/journal.entry.html:/blog

But this is not working at all,

it will be helpful any one have idea with communities URL Mappings.

Thanks

Raj

4 Replies

Avatar

Level 1

Vanity URL will work only for Journal Page, when i hover on a Blog Post, it still points to a complex URL.

vanity.png

Avatar

Level 3

If you compare blog page url (where all blogs are listed ) to blog detail page, you can  notice that actual url is not changing. Only a selector (entry) and suffix (date) is being added.

Due to this selector(entry) , entry_topic.hbs file is resolved which shows the blog content and its title.

My guess is,  if you would change the url, this entry_topic.hbs file will not be resolved and blog content will not be visible.