# Tutor local launch after install/enabling plugin

**URL:** <https://discuss.openedx.org/t/tutor-local-launch-after-install-enabling-plugin/12252>\
**Category:** Tutor Help\
**Tags:** how-to, tutor, tutor-plugin\
**Created:** [February 5, 2024, 10:01pm UTC](https://discuss.openedx.org/t/tutor-local-launch-after-install-enabling-plugin/12252 "2024-02-05T22:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Ivor\_Scott](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ivor_scott/32/6346_2.png) [@Ivor\_Scott](https://discuss.openedx.org/u/Ivor_Scott)\
**Post date:** [February 16, 2024, 4:33pm UTC](https://discuss.openedx.org/t/tutor-local-launch-after-install-enabling-plugin/12252/7 "2024-02-16T16:33:41Z")

</div>

This issue is a duplicate from:

> [@Tutor mfe plugin fresh startup error](https://discuss.openedx.org/t/tutor-mfe-plugin-fresh-startup-error/8104):
>
> Good day fellow Developers! I recently installed open edx tutor on a fresh instance. I followed the instructions on the open edx tutor documentation and everything seems to be working fine. But there seems to be a problem with the tutor-MFE plugin. There are times that it works, and there are times that it don’t. For example, if I would click the “Profile” or “Account” tab here: [image] It would redirect me to the MFE\_HOST. But on my end, there are times that it displays what is to be expecte…

> [@When attempting to enter a course's home on Learning MFE, Error: getLocale called before configuring i18n](https://discuss.openedx.org/t/when-attempting-to-enter-a-courses-home-on-learning-mfe-error-getlocale-called-before-configuring-i18n/9756/11):
>
> The situation is the same for me. openedx-language-preference is set on the lms dashboard as seen in the picture. [image] But on the mfe profile page there are no cookies set at all. Here is the Network console:

I simply created a new environment variable: `BASE_DOMAIN=charite.local` and a plugin to patch settings.

```auto
from tutor import hooks

hooks.Filters.ENV_PATCHES.add_items(
    [    
        (
            "lms-env",
            """
"SESSION_COOKIE_DOMAIN": ".{{ BASE_DOMAIN }}"
"""
        ),
        (
            "cms-env",
            """
"SESSION_COOKIE_DOMAIN": ".{{ BASE_DOMAIN }}"
"""
        ),
        (
            "openedx-cms-production-settings",
            """
SESSION_COOKIE_DOMAIN: ".{{ BASE_DOMAIN }}"
"""
        ),
        (
            "openedx-lms-production-settings",
            """
SESSION_COOKIE_DOMAIN: ".{{ BASE_DOMAIN }}"
"""
        )
    ]
)

```

Patches append a new variable to the files, it doesn’t replace the old values which creates a duplicate. This seems unintuitive but the last key is always read so it works.

---

_[View the full topic](https://discuss.openedx.org/t/tutor-local-launch-after-install-enabling-plugin/12252)._
