Login redirect causes 404 since DM 4.4.0.6

Hello :slight_smile:

I've stuck to the latest update of Domain Mapping now since it just works after a full cache reset :smiley:

Unfortunately, I noticed that my login redirect fails to work now.

If I were to login on https://example.com, I'll get redirected to https://example.com/example.com/

If I were to login on https://example.com/something/, I'll get redirected to https://example.com/something/
So that still works :smiley:

My login code:

function hmp_login_call() {
    ob_start();
    hmp_login_process();
    return ob_get_clean();
}

function hmp_login_process() {
    if (isset($_POST['user-submit'])) {
        dlf_auth($_POST['log'], $_POST['pwd']);
    }
     hmp_login_form();
}

function hmp_login_form() {
global $user_login;
?>
<form action="<?php bloginfo('url') ?>/wp-login.php" class="wp-user-form" method="post">
    <div class="username">
        <p class="input-prepend">
            <span class="add-on fa-user-fix"><span class="fa fa-user"></span></span>
            <input name="log" type="text" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" placeholder="Gebruikersnaam" tabindex="1" />
        </p>
    </div>
    <div class="password">
        <p class="input-prepend">
            <span class="add-on"><span class="fa fa-lock"></span></span>
            <input type="password" name="pwd" class="input" value="" size="20" placeholder="Wachtwoord" tabindex="2" />
        </p>
    </div>
    <div class="login_fields"><?php do_action('login_form'); ?>
        <div class="login-submit">
            <input class="sbutton nav-login-button" type="submit" name="user-submit" value="Inloggen" tabindex="3" />
            <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
            <input type="hidden" name="user-cookie" value="1" />
        </div>
    </div>
</form>
<?php
}

It's about 9 months old but it has worked all the time :smiley: It's based of the login widget from here: https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/general-template.php#L0 function: wp_login_form()

Oh god, I really need to update my form... But before that... what causes this issue? :O

Thanks! :slight_smile: