Restricted content redirect error
Posted: January 10th, 2012, 10:22 pm
I found an error on my site in how I redirect visitors who are not logged in that try to access restricted content and hoping someone could find out why this is happening.
When a visitor comes to the site and attempts to access restricted content, they are supposed to be redirected to the member page. But somehow the query string on the end of the member page URI recurses and gets output like this:
/members/members?_s2member_seeking%255Btype%255D=post&_s2member_seeking%255Bpost%255D=39585&_s2member_seeking%255B_uri%255D=LzIwMTIvMDEvZWR3YXJkLWhhcnJpc29ucy10ZW4tc3VycHJpc2VzLWZvci0yMDEyLmh0bWw%253D&_s2member_req%255Btype%255D=level&_s2member_req%255Blevel%255D=3&_s2member_res%255Btype%255D=post&s2member_seeking=post-39585&s2member_level_req=3
That ends up taking the visitor to an error page and isn't helpful in potentially converting the visitor into a member. Has anyone else had this problem? If I can figure out why this happens I will post the answer.
Cheers.
Edward
When a visitor comes to the site and attempts to access restricted content, they are supposed to be redirected to the member page. But somehow the query string on the end of the member page URI recurses and gets output like this:
/members/members?_s2member_seeking%255Btype%255D=post&_s2member_seeking%255Bpost%255D=39585&_s2member_seeking%255B_uri%255D=LzIwMTIvMDEvZWR3YXJkLWhhcnJpc29ucy10ZW4tc3VycHJpc2VzLWZvci0yMDEyLmh0bWw%253D&_s2member_req%255Btype%255D=level&_s2member_req%255Blevel%255D=3&_s2member_res%255Btype%255D=post&s2member_seeking=post-39585&s2member_level_req=3
That ends up taking the visitor to an error page and isn't helpful in potentially converting the visitor into a member. Has anyone else had this problem? If I can figure out why this happens I will post the answer.
Cheers.
Edward