Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

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

Avatar

Level 2

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 2

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.