Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi Hetty, that is very strange and not something we’ve seen before. Usually if there’s an issue here it’s related to enrollment and the redirect fails entirely. It wouldn’t redirect to a completely different page.

    Any chance you could post a screenshot (or send it to our Help Desk) showing your redirect target inside the edit course page? And is there any way the page could be private or something else might be triggering a sitewide redirect, like a maintenance plugin?

    And if you disable our redirect, can a user visit both the course page and the sales page directly without being redirected?

    Thread Starter hettyvanderwal

    (@hettyvanderwal)

    @uncannyowl

    Thank you for your reply.

    This is a screenshot from the edit course page: https://imgur.com/7evJYkr
    It should go to https://yogamarketingcoach.nl/nieuwe-deelnemers-voor-jouw-yogalessen/, but instead it goes to https://academie.yogamarketingcoach.nl/inloggen/?redirect_to=https://academie.yogamarketingcoach.nl/wp-admin/.

    If you visit https://academie.yogamarketingcoach.nl (and of course you’re not enrolled) and click Traject Nieuwe Deelnemers voor Jouw Yogalessen course you will see that it redirects you to a wrong URL.

    When I disable the redirect module, the course page is accessible. There is no maintenance plugin active and I think it’s not a private page either.

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Thanks @hettyvanderwal , one of our developers had a look and it is related to the different domains. It looks like we had another ticket about it recently too. Anything other than what’s set up in Settings > General in /wp-admin/ is treated as external and can cause the issue you describe.

    Our developer suggested you could try adding this code to the functions.php file of your child theme on the academie subdomain:

    add_filter( 'allowed_redirect_hosts', 'ymc_extend_allowed_domains_list' );
     
    function ymc_extend_allowed_domains_list( $hosts ){
    
    	$hosts[] = 'yogamarketingcoach.nl';
     
    	return $hosts;
     
    }
    Thread Starter hettyvanderwal

    (@hettyvanderwal)

    @uncannyowl

    Thank you, I added the code to my website and now the redirect works as expected ?? thanks a lot!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    That’s great news! Thanks for confirming the fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not enrolled redirect redirecting to login page’ is closed to new replies.