# LangRouter and PdoMenu home link error

**URL:** <https://community.modx.com/t/langrouter-and-pdomenu-home-link-error/2126>\
**Category:** Random\
**Tags:** langrouter\
**Created:** [January 14, 2020, 1:18pm UTC](https://community.modx.com/t/langrouter-and-pdomenu-home-link-error/2126 "2020-01-14T13:18:42Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ysanmiguel](https://community.modx.com/user_avatar/community.modx.com/ysanmiguel/32/285_2.png) [@ysanmiguel](https://community.modx.com/u/ysanmiguel)\
**Post date:** [January 15, 2020, 10:40am UTC](https://community.modx.com/t/langrouter-and-pdomenu-home-link-error/2126/9 "2020-01-15T10:40:07Z")

</div>

> [@digitalpenguin](#):
>
> &showLog=`1`

- Well there was 2 `&parent`, one of them should be `context='[[*context_key]]'` my mistake!  
but the change didn’t do any good still the same.
- Can’t delete `&parent= 0` otherwise the default will be **Current resource** and not display any link!
- the `site_url` is right written

**Here the LangRouter Log:**

OPENING / HOME PAGE

```
[2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 156) Unhandled request:
    REQUEST_URI: /
    REDIRECT_URI:  
    QUERY_STRING:  
    q:             
    Context: web
    Site start: 1
    [2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 173) contextmap: array(2) {
      ["en"]=>
      string(3) "web"
      ["es"]=>
      string(2) "es"
    }

   [2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 173) Detected culture key: string(2) "en"

  [2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 173) Detected context key: string(3) "web"

   [2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 156) Culture key not found in URI:
    REQUEST_URI: /
    REDIRECT_URI:  
    QUERY_STRING:  
    q:             
    Context: web
    Site start: 1
    [2020-01-15 10:35:22] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 185) Context switch to "web" was not valid.

```

OPENING /ES/ PAGE

```
[2020-01-15 10:36:01] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 156) Unhandled request:
REQUEST_URI: /es/
REDIRECT_URI:  
QUERY_STRING: q=es/
q: es/
Context: web
Site start: 1
[2020-01-15 10:36:01] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 173) contextmap: array(2) {
  ["en"]=>
  string(3) "web"
  ["es"]=>
  string(2) "es"
}

[2020-01-15 10:36:01] (ERROR in LangRouter @ /home/user/public_html/core/components/langrouter/model/langrouter/langrouter.class.php : 156) Culture key found in URI:
REQUEST_URI: /
REDIRECT_URI:  
QUERY_STRING: q=es/
q:             
Context: es
Site start: 7

```

---

_[View the full topic](https://community.modx.com/t/langrouter-and-pdomenu-home-link-error/2126)._
