<!DOCTYPE html> <html lang="en"> <head> <title>Gamepad</title> <meta charset="utf-8"> <script> // This redirects to the root while preserving the query string and hash. window.location.href = window.location.href.replace( '/gamepad.html', window.location.protocol === 'file:' ? '/index.html' : '/' ); </script> </head> <body> </body> </html>