redirect hook question
-
I would like to setup the redirect hook so that when the users log in, they will be directly taken to the page that they just tried to access.
When I try to access a private page as a logged out user I get URL
http://svn.amebylon.net/?my_redir_to=%2Factivity
but once I log in I am taken to the home page instead of the activity page. Listed below is my config file. Please let me know what should be corrected to make this work. Thanks!
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$MODE = MM_BUDDYPRESS_PRIVATE_COMMUNITY::MODE_BLOCK_ALL_AND_ALLOW_SOME_URIS;
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$ALLOWED_URIS = Array(‘/contact’, ‘/submit’, ‘/about’, ‘/terms’, ‘/privacy’, ‘/blog’, ”);
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$NOT_ALLOWED_URIS = Array(‘/private*’);
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_TO_URL = site_url() . ”;
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$REDIRECT_HOOK = ‘my_redir_to’;
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$ALLOWED_WIDGET_IDS = Array(‘custom_widget_twitter’, ‘text-3′, ‘text-7′, ‘archives-3′, ‘tag_cloud-3′, ‘text-5′, ‘text-4′);
MM_BUDDYPRESS_PRIVATE_COMMUNITY::$BLOCK_RSS_FEEDS = FALSE;
You must be logged in to reply to this topic.