<!DOCTYPE html>
<html>
    <script>
        var url = new URL(window.location.href);
        url.hostname = "{{GET[hostname]}}";
        url.pathname = "/security/support/window-name-test.sub.html";
        url.search = "shouldhavename={{GET[shouldhavename]}}&sendmessage={{GET[sendmessage]}}";
        window.name = "test";
        document.location = url.href;
    </script>
</html>
