[ZBX-11905] Not working redirect to the original requested page after login Created: 2017 Mar 13  Updated: 2024 Apr 10  Resolved: 2017 Mar 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.8, 3.2.4
Fix Version/s: 3.0.9rc1, 3.2.5rc1, 3.4.0alpha1

Type: Incident report Priority: Trivial
Reporter: Valdis Murzins Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 3, Sprint 4
Story Points: 1

 Description   

When opening the page current user doesn't have permissions to, after login with appropriate user he should be redirected to original requested page, but he is redirected to Dashbord instead.
In version 2.2 it works correctly, but from version 3.0 and up, it is not working.

Steps:
1. Logout from current user
2. Open page, you don't have permissions to
For example: /users.php
3. Select Login
4. Login with appropriate user (in this example - super admin)



 Comments   
Comment by Valdis Murzins [ 2017 Mar 13 ]

(1) No translation strings changed.

sasha CLOSED

Comment by Valdis Murzins [ 2017 Mar 13 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-11905

Comment by Alexander Vladishev [ 2017 Mar 16 ]

(2) Double call of CHtml::encode() method. First call of this method must be removed.

frontends/php/include/views/general.login.php:25

$request = CHtml::encode(getRequest('request', ''));

frontends/php/include/classes/html/CTag.php:274

$value = CHtml::encode($value);

vmurzins RESOLVED in r66450

sasha CLOSED with minor improvement in r66457

Comment by Valdis Murzins [ 2017 Mar 17 ]

Fixed in 3.0.9rc1 r66518, 3.2.5rc1 r66519, 3.4.0alpha1 r66520

Generated at Fri Mar 14 13:32:42 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.