Logout Button Logging out, but not redirecting

I’m sure this is a case of me being an idiot, but I’m at a loss.

I followed these instructions to create a logout button:

Logging out works (if I refresh the page, I go to the login page because I’m not longer authenticated), but the user isn’t redirected to the login.html page. It appears that nothing happens. (but again, logging out does work).

I currently have the logout button in a header/site include, but the same thing happens when I add a button to the main page.

Here’s the code of the header and logout button (the header is a .php, and the main page is a .php).

<div is="dmx-browser" id="browser2"></div>
<dmx-serverconnect id="header_serverConnect" url="/dmxConnect/api/Security/dbLogout.php" noload="noload" dmx-on:success="browser2.goto('login.html')"></dmx-serverconnect>
<header class="">
  <div class="container h-auto">
        <div class="row align-items-xl-center border-bottom mt-xl-2 mb-xl-4">
          <div class="col-xl-1">
            <img src="/images/TK-Transparent-Background.png" class="w-100 d-none d-xl-inline">
          </div>
          <div class="col">
            <h1 class="">Identity and Access Management</h1>
          </div>
          <div class="col-xl-3 align-self-xl-center">
            <div class="row align-items-xl-center">
              <div class="col text-xl-center">
                <button class="btn w-75 text-xl-center bg-primary">Home</button>
              </div>
              <div class="col text-xl-center">
                <button class="btn text-xl-center w-75 bg-primary" dmx-on:click="header_serverConnect.load({})" id="btn_logout">Logout</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </header>

Any help is appreciated.

Thanks,
John

Community Page
Last updated: