druxt / umami.demo.druxtjs.org

Umami food magazine DruxtJS demo site
https://umami.demo.druxtjs.org
MIT License
5 stars 5 forks source link

Incorrect viewport on mobile first load #183

Closed Decipher closed 3 years ago

Decipher commented 3 years ago

Describe the bug The desktop version of the site is rendered on the first load for mobile devices.

To Reproduce Steps to reproduce the behavior:

  1. Use a mobile device or mobile dev tools, load 'https://demo.druxtjs.org'
  2. See error
  3. Navigate to another page, error disappears.

Expected behavior The correct viewport should be rendered at all times.

Media ezgif-2-b2cb911a9b16

Your Environment (please complete the following information):

Additional context

Decipher commented 3 years ago

Looking into this a bit further, I suspect that this issue is related to the DruxtRouter module.

If you load the any page that resolves to the wildcard route page, this error will occur:

If you load a page that has an actual Page component it does not appear to occur:

Decipher commented 3 years ago

Fixed in DruxtRouter 0.18.1.