# Geting CurrentWebsiteId from addons

**URL:** <https://forum.litium.com/t/geting-currentwebsiteid-from-addons/544>\
**Category:** Questions\
**Created:** [February 1, 2019, 7:31am UTC](https://forum.litium.com/t/geting-currentwebsiteid-from-addons/544 "2019-02-01T07:31:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zsrdos](https://avatars.discourse-cdn.com/v4/letter/z/74df32/32.png) [@Zsrdos](https://forum.litium.com/u/Zsrdos)\
**Post date:** [February 1, 2019, 7:31am UTC](https://forum.litium.com/t/geting-currentwebsiteid-from-addons/544/1 "2019-02-01T07:31:49Z")

</div>

Hi, how can I get the current websiteId from a project that cant use RequestModelAccessor? I cant add the Litium.Accelerator as an ref because the plugin is a ref to That project.

A lot of old addons uses **CurrentState.Current.WebSite.ID;** What is the correct way to do this going farward? I dont realy like the look of having to send it via the constructor 😃

Litium version: 7.0.2

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [February 1, 2019, 8:06am UTC](https://forum.litium.com/t/geting-currentwebsiteid-from-addons/544/2 "2019-02-01T08:06:28Z")

</div>

If you inject the `Litium.Web.Routing.RouteRequestLookupInfoAccessor` (registered as singelton) you can access the `Litium.Web.Routing.RouteRequestLookupInfo` object that have the `Channel` as a property, From the `Channel` you can get the `WebsiteSystemId`.

The `Litium.Web.Routing.RouteRequestLookupInfo` will be extended with additional properties for website, culture, uiCulture etc to make it easier to extend the `Litium.Web.Routing.IChannelResolver` to example fetch the current display culture from a cookie instead of the one that are set for the website.

---

<div class="post-metadata">

**Author:** ![Zsrdos](https://avatars.discourse-cdn.com/v4/letter/z/74df32/32.png) [@Zsrdos](https://forum.litium.com/u/Zsrdos)\
**Post date:** [February 1, 2019, 9:49am UTC](https://forum.litium.com/t/geting-currentwebsiteid-from-addons/544/3 "2019-02-01T09:49:35Z")

</div>

Fantastic! Thanks!
