mdn / yari

The platform code behind MDN Web Docs
Mozilla Public License 2.0
1.19k stars 509 forks source link

"Maintance OnGoing" Message is displayed untill internet is not connected to device #11842

Open aregularguy opened 1 month ago

aregularguy commented 1 month ago

Summary

When the internet connection is lost, the MDN Web Docs website header displays a "Maintenance Ongoing" message. This message persists as long as the device is disconnected from the internet. Once the connection is restored, the message disappears.

URL

https://developer.mozilla.org/en-US/

every page with header

Reproduction steps

  1. Go to any page on mdn https://developer.mozilla.org/en-US/
  2. turn of internet connection for you device (laptop/desktop) 3.check at navbar at top you will see Maintance On going at top right corner
  3. this message is displayed until we re connect to internet.
  4. Re connect to internet Message will disappear again

Expected behavior

Instead of "Maintenance ongoing" it should show better message such as internet not connectedMaintenance

Actual behavior

image Maintance On Going is displayed at top Maintenance

Device

Desktop

Browser

Chrome

Browser version

Stable

Operating system

Windows

Screenshot

When I am connected to the internet . image

When i disconnect my internet from my device , see at top right corner in header in below image message is shown for maintenance on going.

image

when i reconnect to internet ->

image

Anything else?

No response

Validations

argl commented 1 month ago

Hi and thank you for reporting this. The behaviour is actually expected, the "Maintenance" banner is shown if the page cannot connect to our authentication backend - this could be for various reasons, including the browser being completely offline. It is out of scope for us to dig into the deeper causes from the browser side when a connection error occurs. That said, I agree that the wording could be better to not confuse users. We will discuss this. Thanks again for taking the time!