-- HikaShop version -- : 4.6.0
-- Joomla version -- : 4.1.5
-- PHP version -- : 7.4.30
I have a strange one.
To simplify the User Registration Forms, I am using Layout Template overrides. We are using a large set of User custom fields as a User Profile which are only needed for a small set of Joomla Users, but are rarely needed for Store Customers - we can't make them "required" so we modified the Registration templates.
All of that is working fine, both through registrations via purchases and the online registration form (HikaShop's form, not Joomla's).
If a registered Joomla User accidentally visits the Registration page, I want to redirect them to the custom "Welcome" article we built. Using Joomla's access control on the Menu item gives us the benefit of hiding our menu's "Create Account" link from registered visitors, but it redirects a User back to the Home page, along with an error message we'd rather customize. I don't think there's a way to customize that built-in redirect, so I'd rather handle redirection on the Registration page itself.
This sounds simple: just add an application->redirect() after checking the User's Guest property. The problem is that for some unknown reason, my test-driven redirect's address value gets overridden by one which sends the browser to HikaShop's Customer Dashboard page - which we don't even run an instance of. (the redirected url becomes "/component/hikashop/user/cpanel")
I have no idea where to even look for this problem. Suggestions?
Thanks.