# Sitemap link not directing to proper component

**URL:** <https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [December 1, 2018, 1:10pm UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640 "2018-12-01T13:10:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Kumar](https://community.bloomreach.com/u/Amit_Kumar)\
**Post date:** [December 1, 2018, 1:10pm UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/1 "2018-12-01T13:10:59Z")

</div>

Hi Team,

currently my blog articles are available at below below url [http://localhost:8080/root/blog/2018/09/second-blog-post.html](http://localhost:8080/root/blog/2018/09/second-blog-post.html) and this blog article contains the link to visit the author/writer profile at this url [http://localhost:8080/root/blog/authors/hippo-essentials-author.html](http://localhost:8080/root/blog/authors/hippo-essentials-author.html)

But the problem, I am facing here is, even though there is a proper and seperate templates,pages, Componenets for author but still when user clicks on author profile URL, request is going to BlogComponenet instead of Author Component.

I tried to change the sitemap as well but no luck.

Please help.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [December 3, 2018, 9:45am UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/2 "2018-12-03T09:45:54Z")

</div>

It sounds like you have a sitemap item that matches which uses the blog component. You need a sitemap item that matches [http://localhost:8080/root/blog/authors/hippo-essentials-author.html](http://localhost:8080/root/blog/authors/hippo-essentials-author.html) which attaches to an Author Component.

---

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Kumar](https://community.bloomreach.com/u/Amit_Kumar)\
**Post date:** [December 5, 2018, 10:20am UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/3 "2018-12-05T10:20:59Z")

</div>

Hi @jasper.floor,  
You are right, there is some sitemap item which matches BlogComponenet beofore the AuthorComponenet can get the request.

I tried couple of combinations to resolve this issue but looks I am doing something terribly wrongor may be I missed something.

Mean while I tried with [https://www.onehippo.org/library/concepts/request-handling/sitemapitem-matching.html](https://www.onehippo.org/library/concepts/request-handling/sitemapitem-matching.html) , but I am still unable to get some point.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/1e8c13c878e67c397c2b151c53dc4f6852ee6ddc.png)

would you please help on below queries:  
**(Image given above is for clarity and belongs to Hippo 7\_9 documentation,(even though this particular version of hippo is outdated but many of things available is still far better then documentation provided by latest hippo documentation, Hope Hippo guys will understand this and will make the documentation easier to understand. still Hippo documentation lacks many more thing compare to others(I guess this may be intentional as Hippo is earning money only from their Blommreach Experience and training others on same Hippo related tasks. ))  
I hope there will be some better options to achieve the same without discouraging proper documentation process for community.)**

1. If we take agenda sitemap item as an example then, will agenda itself will have **hst:componentconfigurationid** and **relativeContentPath** attribute ? if yes what would be the possible value,(any example)

2. Now same question is for sitemap item **2011** and for immediate descendant **_default_** as well. I can understand the last _default_ will have both **hst:componentconfigurationid** and **relativeContentPath** attribute.

3. would you please tell for below scenario what would be the value for agenda sitemap and for their descendant sitemap item.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [December 5, 2018, 10:38am UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/4 "2018-12-05T10:38:26Z")

</div>

If you take time to read the article you’ll find examples for content mapping e.g.

`news/_any_ : news/${1}`  
`news/default/default/_any_ :`news/ {1} / {2}/${3}`

same can be applied to agenda.

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [December 5, 2018, 10:40am UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/5 "2018-12-05T10:40:37Z")

</div>

NOTE: editor is stripping dollar signs, see

> **[SiteMapItem Matching - Enterprise Java Content management system - Hippo CMS](https://www.onehippo.org/library/concepts/request-handling/sitemapitem-matching.html)**
>
> Hippo Open Source Enterprise Content Management

---

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Kumar](https://community.bloomreach.com/u/Amit_Kumar)\
**Post date:** [December 5, 2018, 10:44am UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/6 "2018-12-05T10:44:34Z")

</div>

Thanks @machak, My confusion is regarding **hst:componentconfigurationid** and **relativeContentPath** attribute. _please see point 1 and point 2_

> [@Amit\_Kumar](#):
>
> - If we take agenda sitemap item as an example then, will agenda itself will have **hst:componentconfigurationid** and **relativeContentPath** attribute ? if yes what would be the possible value,(any example)
> - Now same question is for sitemap item **2011** and for immediate descendant _ **default** _ as well. I can understand the last _default_ will have both **hst:componentconfigurationid** and **relativeContentPath** attribute.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Amit\_Kumar](https://community.bloomreach.com/u/Amit_Kumar)\
**Post date:** [December 5, 2018, 12:14pm UTC](https://community.bloomreach.com/t/sitemap-link-not-directing-to-proper-component/640/7 "2018-12-05T12:14:08Z")

</div>

Thanks All,

Looks like, I found answer to my problem. will update the solution if possible.

Thanks,  
Amit
