I suggest this small change that allows to replace the http URL by the https URL in browser’s history, thus limiting the issues with BACK button (which immediately goes FORWARD again and you remain on same page) and saving one duplicate line of display.
cf. jesus2099/konami-command@8d0efa29cf3d4429d6107b1e6a368e0dc9c5fde7