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 is to be directed to a specific page or menu item once logged in
login results in opening http://mysite.com/index.php/1
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
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'))); ?>" />
Labels |
Added:
?
|
Category | ⇒ | Authentication |
Status | New | ⇒ | Discussion |
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.
thanks for the update @franz-wohlkoenig
Steve
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_
.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-18 16:36:26 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Closed | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
closed as no Core Issue. Fell free to reopen for further Discussion.
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16097
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]
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