[SOLVED] member-only content and redirects

12 years 3 months ago - 12 years 3 months ago #189851 by ThePiston
I have a client that wants users to be able to click on a link to a member-only article, be directed to login, and then again directed to the article when they log in.

Right now this is what happens:

link = www,site.com/member-only

URL changes to http://www,site.com/index.php?option=com_user&view=login&return=aHR0cDovL3d3dy5vcHRvbWV0cmljc29jaWV0eS5vcmcvY29tcG9uZW50L2NvbnRlbnQvYXJ0aWNsZS8xMi1tZW1iZXItdG8tbWVtYmVyLzI4OS1zdGFuZC1hbG9uZS12aXNpb24tcGxhbnMtdGhlLWFvYS1oZWFsdGgtY2FyZS1leGNoYW5nZXMtYW5kLXRoZS1oYXJraW4tYW1lbmRtZW50Lmh0bWw=

Then this is when CB takes over and for some reason takes the above URL to the registration URL:
http://www,site.com/component/comprofiler/registers

Not sure I'eve ever seen that before. Is there somewhere in config that allows restricted articles to be redirected to the Reg page? How to stop that and allow com_users to take over and redirect to log in page which would then take user to article upon successful login?

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

12 years 3 months ago #189904 by krileon
Replied by krileon on topic Re: member-only content and redirects
If CBSubs is present or a 3rd party redirect plugin is present it'll intercept the Joomla user pages and redirect to CBs user pages. Due to this being a triple redirect it's not possible to return to the article. We're reviewing for future releases of CB a new way to capture, store, and retrieve the return URL to ensure after login user returns to proper location. Unfortunately I've no workaround for this issue other then maybe a new plugin that trys to do a javascript history back.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 3 months ago #189909 by ThePiston
Replied by ThePiston on topic Re: member-only content and redirects
yes, this is a CBsubs site. Client won't be happy though. Thanks

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.357 seconds

Facebook Twitter LinkedIn