UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Wrong menu item being used for registration

Christopher Ambler · ·
7:16 AM Tuesday, 17 November 2020
Normal
I have a menu item for registration created in a menu.

When PayPlans sends a user to register, however, this menu item is not the one triggered.

The menu item is created by specifying com_user as the component and registration as the view, and given "registration" as an alias.

Looking at your code, you seem to build this URL directly and are not passing it through Joomla's router. This will preclude ever using the correct menu item (and Itemid) for registration.

Modifying your code to look like this fixes the problem (line 21 in /administrator/components/com_payplans/includes/registration/adapters/joomla.php):


$this->url = JRoute::_('index.php?option=com_users&view=registration&fromPayplans=1');


This causes the URL to be passed through the router and then generates the correctly-routed URL:


https://www.example.com/registration?fromPayplans=1


Can you fix this?

SECOND QUESTION: While I'm here, if I wrote my own registration adapter, where would I install it so as to not have to re-apply it every time I upgrade?
The replies under this section are restricted to logged in users or users with an active subscription with us