Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect hook not working

  • Avatar of cath_allen14
    cath_allen14
    Member

    @cath_allen14

    I would like users to be redirected to the page they were originally on but it currently redirects to the homepage.

    Here is my config, please could you let me know what I have done wrong?
    <?php
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$MODE = MM_BUDDYPRESS_PRIVATE_COMMUNITY::MODE_BLOCK_NONE_AND_NOT_ALLOW_SOME_URIS;
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$ALLOWED_URIS = Array(‘/home’, ‘/noticeboard’, ‘register’);
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$NOT_ALLOWED_URIS = Array(‘/members’, ‘/teachers’);
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_TO_URL = site_url() . ‘/register';
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_HOOK = ‘bp_pc_redir_to';
    MM_BUDDYPRESS_PRIVATE_COMMUNITY::$BLOCK_WIDGETS = FALSE;

You must be logged in to reply to this topic.