joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.73k stars 3.64k forks source link

Joomla 4 - redirect after login #35562

Open Sandvelder opened 3 years ago

Sandvelder commented 3 years ago

Steps to reproduce the issue

Hi Joomla 4, after a session has expired, does not redirect to the previous page after a re-login, but goes to the user's profile page.

Expected result

Actual result

System information (as much as possible)

Additional comments

brianteeman commented 3 years ago

Are you referring to the site or the admin?

Sandvelder commented 3 years ago

Hi Brian I am referring to the site. I have 22 sites, of which 3 are on Joomla 4. The new Joomla 4 sites give this issue. For instance, I would be on my management site (management.jfbdesigns.co.za) on the academics page (https://management.jfbdesigns.co.za/academics) and after a while, the session ends. On refreshing, the login screen pops up and I log in. You should then go back to the academics page, but the user profile screen pops up. Joomla 4 should, like Joomla 3, keep you on the page you were on when the session expired. Regards, Francois

brianteeman commented 3 years ago

There are two places you should check

  1. The login module
  2. The login menu item (if you have one)

Both of these have an option describing what will happen on login

Sandvelder commented 3 years ago

Thank you, Brian Yes, I have checked those prior to posting here, but they seemed not to have changed anything. I have now logged into the module again and removed any references to redirects. It seemed to have resolved it. But I did that before too and it would not change anything. It seems fine now - fingers crossed! Regards Francois

Sandvelder commented 3 years ago

Hi Brian I thought the problem was solved, but it was not. In Joomla 4, if a session has expired and you click on a menu item, it takes you to the login screen, which is correct, and once you logged in you are supposed to be directed to the menu item you clicked on, but you land up at the user profile page. I have gone through all the login module settings and nowhere is there a redirection set to the user profile page. I think it is one of those new issues with a new version which someone should just address rather sooner than later. The rest of Joomla 4 is working nicely and I am impressed with it. Regards, Francois

brianteeman commented 3 years ago

I could not replicate this when I checked this morning. Please post a screenshot of your login module options and of any login menu (if you have one)

Sandvelder commented 3 years ago

Hi Brian When I am logged out of my management site, only two items are available: 1) Home and 2) Blog. When I log in, the others appear too. See this screenshot.

Once the session times out and I click on any of those menu items, say [Finance], the website takes me to a login screen. See this screenshot. I then click on [Login], expecting to go to [Finance] but land up here.

I am supposed to be on this screen

Sandvelder commented 3 years ago

The links I left do not work.

I do not know what to do anymore

brianteeman commented 3 years ago

post your images here

jwaisner commented 2 years ago

@Sandvelder , Please post images of your issue.

joomdonation commented 2 years ago

Tried and could not confirm the issue. Looking at the code https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Application/SiteApplication.php#L101 , I believe we have handle this use-case already

So for now, I'm closing this issue. If you have a reliable way to allow us to see the error, feel free to re-open. Thanks !

JanMeest commented 2 years ago

Yes I have the same problem. Joomla 4.1.3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35562.

Sandvelder commented 2 years ago

That problem still persists - I do not know if anyone is even looking into it.

HLeithner commented 2 years ago

@Sandvelder if you session expire and you get redirected to the login screen please check the sourcecode of the page. There should be an input field with the Name "return". The value is a base64 Encoder string, please post this string Here.