statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Child list missing on Statamic navigation #2452

Closed jeremydouglas closed 4 years ago

jeremydouglas commented 4 years ago

I've had a couple sites where the sub navigation list in the Statamic sidebar doesn’t show. (see screeshot, the Settings menu should show.) I’ve noticed in the last few versions up to the current 2.11.15

Screen Shot 2019-10-08 at 4 29 44 PM
jasonvarga commented 4 years ago

This is generally when your urls in settings/system.yaml are relative and it has difficulty working out the full url from the server for whatever reason. (Proxy, etc)

To fix this, make the urls full, eg. http://mysite.com/

jeremydouglas commented 4 years ago

Yes, this is a little weird. I get the menus on my local env with this environment file:

settings:
  caching:
    static_caching_enabled: false
  debug:
    debug: true
    debug_bar: true
  system:
    locales:
      en:
        url: "http://pool-doctors.test"

But not on my staging server with this in the environment file:

settings:
  caching:
    static_caching_enabled: false
  debug:
    debug: true
    debug_bar: false
  system:
    locales:
      en:
        url: "http://pld.compasscreative.dev"

I'll be able to test in a production environment shortly.

jeremydouglas commented 4 years ago

Sub menu is working on production, I'll not worry about this further.