This problem happen because functions like: JRoute::_('index.php?option=com_users&view=login')
or JRoute::_('index.php?option=com_users&view=registration')
inherits Itemid of logout menu item (when missing menu item of type Users->Login or Users->Registration).
Labels |
Added:
?
|
Hi,
I have tested on 3.7.0-dev and 3.6.5
Redirect to home page happen also when you try to use the link to create an account from login page:
Hi,
confirmed, this happen also on staging/3.7. alpha2
Cannot confirm Issue. On latest staging tested on
Don't have an account
opens /index.php/login?view=registration
Create an account
opens /index.php/component/users/registration?Itemid=101
Hi @franz-wohlkoenig,
of course,
your first case: you have a menu item of type Users->Login, the bad behavior happen when you does not have any other menu item from com_users (only logout menu item).
your second case: seems that you not have a menu item of type Users->logout (with redirect url), otherwise you will have a link like "/logout/?view=registration"
with only logout menu item you have this routing (with SEF)
profile page: /logout/?view=profile
edit profile: /logout/?view=profile&layout=edit
registration: /logout/?view=registration
login: /logout/?view=login
but if is set also a redirect parameter for logout menu item then above links go to redirect Url
CASE1: Into frontend try to put wrong credentials
What happens if Logout-Menu is set on public
:
Warning: Username and password do not match or you do not have an account yet.
Warning: Username and password do not match or you do not have an account yet.
Remove IDs from URLs
)Warning: Username and password do not match or you do not have an account yet.
Warning: Username and password do not match or you do not have an account yet.
Change Access of Logout-Menu on Registered
got expected Result: Redirect to login page with Warning: Username and password do not match or you do not have an account yet.
Thanks franz,
Change Access of Logout-Menu on Registered got expected Result: Redirect to login page with Warning: Username and password do not match or you do not have an account yet.
Yes, it did the trick, I think that is better to add some check in the function menulogout in file /components/com_users/controllers/user.php like
public function menulogout()
{
if(JFactory::getUser()->id)
{
// HERE CODE FROM menulogout
}
}
Category | ⇒ | Router / SEF |
@fdesanto can you please confirm Issue on latest Staging?
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed - No Reply |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-27 10:31:10 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/13764
This has been closed due to lack of response to the requests above – it can always be reopened in the future if it is updated.
Have you tested this on staging/3.7. alapha2?