latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Controlling page redirection

Home Forums Community Forum Controlling page redirection

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 2 months ago.

Topic Author Topic
Posted: Monday Oct 15th, 2012 at 9:26 am #28417

There are several situations in which our users log out from a page, and then s2Member redirects them to the membership options page. This is undesirable for several reasons, and I’m wondering if there is a way to disable or configure the way s2Member handles redirection when users hit a page that they don’t have permission to access. For example, if a user tries to navigate directly to his/her member profile page, s2Member bounces them to the membership-options page instead. Can you advice me how best to correct this?

Here’s the URL that I see when I get the undesirable redirection:
http://my-site.dev/membership-options/?_s2member_seeking%5Btype%5D=page&_s2member_seeking%5Bpage%5D=409&_s2member_seeking%5B_uri%5D=L21lbWJlci1wcm9maWxlLw%3D%3D&_s2member_req%5Btype%5D=level&_s2member_req%5Blevel%5D=0&_s2member_res%5Btype%5D=sys&s2member_seeking=page-409&s2member_level_req=0

  • This topic was modified 4 years, 2 months ago by  Brett Adcock.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Oct 16th, 2012 at 7:48 am #28509

Hi Bret.

What behavior do you want to have happen then?

Protected pages will redirect to the Membership Options page. If you want to show another message right there, instead, you can use conditionals instead of the restrictions. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]

About the profile page being protected, profiles aren’t normally public in WordPress. Some plugins may add that, though, like BuddyPress.

Is that profile page the default one or a custom one you created for users? It seems to be protected at Level 0 (requiring the user to be logged in).

I hope that helps. :)

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.