?
avatar Stevec4
Stevec4
18 May 2017

Steps to reproduce the issue

Set a log in redirect to a menu item or internal url
Save and log out of site upon logging in I am taken to the index but not to the redirect url or menu item.

Expected result

Expected result is to be directed to a specific page or menu item once logged in

Actual result

login results in opening http://mysite.com/index.php/1

System information (as much as possible)

3.7.1
PHP 7.1.4
The menu item is set in the DB for the redirect ("login_redirect_menuitem":"103")
Caching is turned off

Additional comments

I have also tried applying the patch for the ampersand issue with out any change ( Issue #16089)

I was able to get it working again by replacing the $return variable line 83 in default_login_php
<input type="hidden" name="return" value="<?php echo base64_encode($return); ?>" />
I added the values back and my redirect worked once again.

<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url', $this->form->getValue('return'))); ?>" />

avatar Stevec4 Stevec4 - open - 18 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 May 2017
avatar Stevec4 Stevec4 - edited - 18 May 2017
avatar Stevec4 Stevec4 - change - 18 May 2017
The description was changed
avatar Stevec4 Stevec4 - edited - 18 May 2017
avatar Stevec4 Stevec4 - change - 18 May 2017
The description was changed
avatar Stevec4 Stevec4 - edited - 18 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 18 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 May 2017
Category Authentication
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

Can't confirm Issue, Login- and Logout-Redirect set in Login Form-Module works as expected.

System information

3.7.1
macOS Sierra, 10.12.4
Firefox 53 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 18 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 May 2017
Status New Discussion
avatar Stevec4
Stevec4 - comment - 18 May 2017

As franz-wohlkoenig says the login module does appear to still work properly.
to better reproduce this issue try this setup

Create a hidden menu item and Users >> Login Form
set the redirect to any page / menu item
and try the log in.

Steve

3.6.5 upgraded to 3.7.1
Switching Templates to Protostar had no effect
Switching Browsers also had no effect.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

@Stevec4 tried also using Menu "Login Form", got same Result like using Login Form-Module: Login- and Logout-Redirect works as expected.

As i'm working on a fresh 3.7.2-dev-Installation it looks like an Issue cause of Upgrade from 3.6.5.

avatar Stevec4
Stevec4 - comment - 18 May 2017

thanks for the update @franz-wohlkoenig

Steve

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

i guess its not a Core Issue cause there would be more Reports, but who knows. So have you asked in forums?

avatar Stevec4
Stevec4 - comment - 18 May 2017

Good thinking, I will ask in the forums to see if anyone else is
experiencing it.

Steve

On Thu, May 18, 2017 at 9:31 AM, Franz Wohlkönig notifications@github.com
wrote:

i guess its not a Core Issue cause there would be more Reports, but who
knows. So have you asked in forums https://forum.joomla.org/?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#16097 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGcEeotxCEUSKPcBqtKtTIqphVXVYcoVks5r7EhPgaJpZM4NeoE_
.

avatar franz-wohlkoenig franz-wohlkoenig - change - 18 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-18 16:36:26
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
The description was changed
Status Closed Discussion
avatar joomla-cms-bot joomla-cms-bot - edited - 18 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
Status Discussion Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 18 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

closed as no Core Issue. Fell free to reopen for further Discussion.


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 18 May 2017
avatar Stevec4
Stevec4 - comment - 25 May 2017

Further to this issue, it appears that if I this line enabled in my htaccess file that the log in redirect fails.
removing it fixes the issue.

This line is in the current htaccess.txt for common exploit blocks.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]

Add a Comment

Login with GitHub to post a comment