# Getting startpage as CurrentPageModel on product page

**URL:** <https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [January 8, 2020, 2:38pm UTC](https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272 "2020-01-08T14:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjaming](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@benjaming](https://forum.litium.com/u/benjaming)\
**Post date:** [January 8, 2020, 2:38pm UTC](https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272/1 "2020-01-08T14:38:24Z")

</div>

I’m using the requestModelAccessor.RequestModel.CurrentPageModel to see which the current page is.  
But when i’m on the product or category page it says i am on the StartPage.

How can i see if the current page is the product or category page?

Litium version: 7.3.1

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [January 8, 2020, 2:43pm UTC](https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272/2 "2020-01-08T14:43:14Z")

</div>

Since categories and products don’t have their own pages in the CMS, current page will always be the start page for those.

You can inject the `RouteRequestInfoAccessor` and cast its `.RouteRequestInfo.Data` as `ProductPageData` to determine where you are.

Here are some older threads asking something similar:

> [@Get URL to Page/Category/Product](https://forum.litium.com/t/get-url-to-page-category-product/1006):
>
> Hi, I got a website where i want to switch language and it redirects to same page on that language. We got it setup that each language got a channel: hostname/sv hostname/en So if I am on page: hostname/en/about-us i want to redirect to: hostname/sv/om-oss. I have done this by using: requestModel.CurrentPageModel.SystemId PageService ChannelService UrlService Though when a user is on a category or product page the SystemId above will not point to that “Page”. I’m thinking i need to get…

> [@Detect if page is startpage](https://forum.litium.com/t/detect-if-page-is-startpage/294):
>
> When the headerViewModel is being build I want to detect if the startpage is loading. Any pointers on how to do that? Litium version: 7

---

<div class="post-metadata">

**Author:** ![benjaming](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@benjaming](https://forum.litium.com/u/benjaming)\
**Post date:** [January 8, 2020, 2:55pm UTC](https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272/3 "2020-01-08T14:55:04Z")

</div>

This worked great, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [February 5, 2020, 2:55pm UTC](https://forum.litium.com/t/getting-startpage-as-currentpagemodel-on-product-page/1272/4 "2020-02-05T14:55:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
