Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lukebme

    (@lukebme)

    Update: the issue seems to be related to if the user has completed the course before and has multiple certificates. If I delete all certificates and teh course is completed again, the issues is resolved.

    Thread Starter lukebme

    (@lukebme)

    Never mind, I’ve just used a redirect in the login-form.php to the login page I want to use. If anyone else has this issue, I’ve copied the login-form.php to my theme directory and updated it to:

    <?php
    /**
     * The Template for displaying the sensei login form
     *
     * Override this template by copying it to yourtheme/sensei/user/login-form.php
     *
     * @author      Automattic
     * @package     Sensei
     * @category    Templates
     * @version     2.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    /**
     *  Executes before the Sensei Login form markup begins.
     *
     * @since 1.9.0
     */
    
    function Redirect($url, $permanent = false)
    {
      header('Location: ' . $url, true, $permanent ? 301 : 302);
      exit();
    }
    Redirect('https://www.example.com/yourloginpage/', false);
    
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)