Feature No Code Attached Yet
avatar jjnxpct
jjnxpct
24 Jul 2023

Steps to reproduce the issue

  • Create a login module
  • Make it show up on the homepage of the website
  • Create a menu item to the user login ('login')
  • Point the module to this menu item

Expected result

Links in the module (Password reset and username links) should point to:
https://websitename.com/login/?view=reset
https://nwebsitename.com/login?view=remind
And the pages should appear to reset / remind

Actual result

The links have these URL's:
https://websitename.com/component/users/reset?Itemid=101
https://websitename.com/component/users/remind?Itemid=101
Clicking on the does not show the forms for remind or reset.

System information (as much as possible)

Joomla 4.3.3
PHP 8.0.29
SEF URLS enabled and using .htaccess

Additional comments

Maybe a routing issue? II also tried it on the default Joomla template. Same issue. But maybe I am missing something??

avatar jjnxpct jjnxpct - open - 24 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Jul 2023
avatar jjnxpct
jjnxpct - comment - 24 Jul 2023

Only when you go to the menu item 'login' the URL are correct. But on all other pages they are non-sef.

avatar jjnxpct jjnxpct - change - 24 Jul 2023
The description was changed
avatar jjnxpct jjnxpct - edited - 24 Jul 2023
avatar jjnxpct
jjnxpct - comment - 27 Jul 2023

I am not sure if the URL's are meant to be 'coupled' to the menu item that is set in the module settings. Maybe not... I did find a way to make it work in our template so the links do work and show the appropriate forms.

So maybe expecting SEF URL's based on the menu item is not the right expectation?

avatar jjnxpct jjnxpct - change - 1 Aug 2023
Title
Non-sef URL's in login module
URL's in login module
avatar jjnxpct jjnxpct - edited - 1 Aug 2023
avatar Hackwar Hackwar - change - 21 Aug 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 21 Aug 2023
avatar Hackwar Hackwar - change - 21 Aug 2023
Labels Removed: bug
avatar Hackwar Hackwar - unlabeled - 21 Aug 2023
avatar Hackwar
Hackwar - comment - 21 Aug 2023

Indeed, there is no connection between the different views, so the login view is not a parent for the "forgot password" view, etc. There is no automation which would result in a "nice" URL for those other views. I also don't see how we could change this in a way which is backwards compatible and wouldn't create issues on other sites. My solution would be an extension which checks the site health and reports among other things missing menu items for these views.

avatar Hackwar Hackwar - change - 21 Aug 2023
Labels Added: Feature
avatar Hackwar Hackwar - labeled - 21 Aug 2023
avatar Hackwar Hackwar - close - 14 Mar 2024
avatar Hackwar
Hackwar - comment - 14 Mar 2024

As I wrote earlier, this is expected behavior so I'm closing this issue.

avatar Hackwar Hackwar - change - 14 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-14 23:12:13
Closed_By Hackwar

Add a Comment

Login with GitHub to post a comment