georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Header disappears on refresh page #607

Closed Gaetanbrl closed 1 year ago

Gaetanbrl commented 1 year ago

Describe the bug

Sometime, if i refresh (ctrl + shift + r or ctrl + R) the geor header disapear. If i try with default map (e.g https://gis.jdev.fr/mapstore/#/) it works fine.

To Reproduce

You need to be authentified

  1. Create a very simple context (e.g just map with print tool)

Also, You can try this context

  1. Open this context (header is visible)
  2. Refresh (ctrl + R)
  3. Header is not visible anymore
  4. log off
  5. Got to /mapstore/#

Or try here

  1. Refresh (ctrl + R)
  2. Header is always visible

Expected behavior

Header stay visible

Screenshots

image

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

catmorales commented 1 year ago

Hello @Gaetanbrl , perhaps you didn't add at the end of localConfig.json the lines referecing to the header:

...     
"Notifications",
            {
                "name": "FeedbackMask",
                "cfg": {
                    "containerPosition": "header"
                }
            }
        ],
         "context": [
                "Header"
            ]
    }
}
catmorales commented 1 year ago

same as https://github.com/georchestra/mapstore2-georchestra/issues/573 , I think resolved by https://github.com/georchestra/mapstore2-georchestra/pull/552/files

Gaetanbrl commented 1 year ago

Thanks @catmorales ! Next Llines missing in localConfig.json :

https://github.com/georchestra/datadir/blob/5a16d090bbb77150d91095113cad6b0a0bb77b7b/mapstore/configs/localConfig.json#L1080-L1082