When your client successfully logged in to the osTicket in order to check the ticket status, then the next default page that shown up is the ticket list page. This will bother your client if they have had so many tickets in that list. This modification will redirect your client to the current viewticket page, right after they logged in. This will be helpful for them to check the current ticket easily and quickly.
Open your login.php file that located in your main directory of your osTicket system, and find this code:
65 | @header("Location: tickets.php"); |
then replace with this following code:
65 | @header("Location: tickets.php?id=" . $ticketID . ""); |
Related Posts:
- How to Create 3 New Permissions (Can Post Reply, Can Post Internal Notes, and Can Assign Tickets) into osTicket 1.6 ST
- Mandatory Attachments for Client Side of osTicket 1.6 ST
- How to List All Attachment Files in the View Ticket Page of osTicket 1.6 ST
- How to Collapse Both the Internal Notes and the Ticket Thread as Default in osTicket 1.6 ST
- How to Implement Simple Time Spent by Staff on Ticket in osTicket 1.6 ST
- How to Make Header Menu of osTicket Become Left-Align
- How to Set Autofocus on Username TextBox in Login Page that Generated by PHPMaker
- How to Set Auto Focus on The Username TextBox in Staff Login Form of osTicket
- Adding Ticket Aging, Ticket Summary, and Ticket for Staff Report Feature into osTicket v1.6 RC5
- Displaying the Staff Name in the Reply Email of osTicket v1.6 RC5
- Auto Assign to the Current Logged In Staff in the New Ticket Form of osTicket v1.6 RC5
- How to Make The New Field Searchable in the Ticket List Page of osTicket v1.6 RC5
- Important Things to Edit New Fields in osTicket v1.6 RC5
- Add Quote to Reply in Staff-Side of osTicket v1.6 RC5
- How to Customize the Ticket Number in osTicket v1.6 RC5
- How to Delete More Than 50 Tickets for Each Execution in osTicket v1.6 RC5
- How to Change Color in Check Ticket Status Form in osTicket v1.6 RC5
- How to Add Extra Fields on the Open Ticket Form of Client Side in osTicket v1.6 RC5
- New Response Alert for All Department Members in osTicket v1.6 RC5
- How to Add Predefined Text in TextArea on Open Ticket Form in osTicket v1.6 RC5
- Assign Staff from Ticket List in osTicket v1.6 RC5
- Force to Change Password After Reset Password in osTicket v1.6 RC5
- Show Who Closed the Ticket in osTicket v1.6 RC5
- How to Insert Ticket Number into Premade Reply Answer in osTicket v1.6 RC5
- Add Auto Staff Time Sheet Feature into osTicket v1.6 RC5
- How to Add New Tab Next to Post Reply Tab in Staff Panel of osTicket v1.6 RC5
- Show the Amount at Closed Tickets Sub Tab of osTicket v1.6 RC5
- Insert Last Update Column in Ticket List Page in osTicket v1.6 RC5
- How to Disable Close Ticket on Reply and on Internal Note in osTicket v1.6 RC5
- Add Merge Ticket Feature into osTicket v1.6 RC5
- Add Batch Ticket Assign Feature into osTicket v1.6 RC5
- Add Who's Online Feature into osTicket v1.6 RC5
- Alert Destination Department Members of Transfered Ticket in osTicket v1.6 RC5
- Send Email to All Staff in osTicket v1.6 RC5
- Add Auto Assigned Ticket Feature into osTicket v1.6 RC5
- Fixing Ticket Transfer Description in osTicket v1.6 RC5
- Show Ticket Only for Current User's Department in osTicket v1.6 RC5
- View Image Attachment in osTicket v1.6 RC5
- Multiple Attachments for Client-Side of osTicket v1.6 RC5
- New Message Alert for All Department Members in osTicket v1.6 RC5
- Record per Page Limit in Client My Ticket Page in osTicket v1.6 RC5
- Notify Staff Member of Their New Account in osTicket v1.6 RC5
- CC Email in osTicket v1.6 RC5
- Password Needed to Activate A Ticket in osTicket v1.6 RC5
- Recording and Displaying The Last Client and Staff Visit in osTicket v1.6 RC5
- Blank Page After Check Ticket Status from Index osTicket v1.6 RC5
- Displaying Help Topic in New Ticket Form for Staff in osTicket v1.6 RC5
- Add Forgot Password Feature for HelpDesk Officer into osTicket v1.6 RC5
- Add Attachment on Internal Note in osTicket v1.6 RC5
- Order Tickets by LastMessage for Staff in My Tickets Page of osTicket v1.6 RC5
- Attachment on Internal Notes in osTicket v1.6 RC4
- Order Tickets by LastMessage for Client in My Tickets Page of osTicket v1.6 RC5
- Send Email to User When The Limit Ticket is Reached in osTicket v1.6 RC5
- Display The Forgot Ticket Number List Including The Closed Status in osTicket v1.6 RC5
- Staff Cannot View Ticket Until They Are Assigned in osTicket v1.6 RC5
- Different Open Ticket Pages in osTicket System v1.6 RC5
- Remind Staff about Assigned Ticket in osTicket System v1.6 RC5
- Limiting Tickets Sent by Same Email Within The Last N Days in osTicket
- How to Avoid Duplicate Message from Client Saved in osTicket v1.6 RC5
- How to Make Phone Number Started With "0" Saved in osTicket System v1.6 RC5
- How to Add Search Form in View Ticket Page in osTicket v1.6 RC5
- How to Improve SysLog Page in osTicket System v1.6 RC5

So simple and so cool MOD.
Customers will surely appreciate this, because when you enter your ticket nb to check you surely expect to see that ticket and not a list of all tickets.
Well seen.
Yeah. Simple, yet powerful.
I made the changes but couln’t get a result.
After the login, clients are still redirected to the ticket list page.
It doesn’t work?
Make sure you have already edited the right file. That login.php file you have to edit is located in the main directory of your osTicket system, and not in the scp sub-directory.
Strange but true
I dont know what it is exactly, but when i implemented this mod of 1.6ST in local host = it works perfectly
But when i updated same localhost directory to webserver = it did not worked
instead it shows blank page, and when hit to blank, it shows complete list of tickets.
please guide me
I have double check it on local host once again and re uploaded the web server, but didnt work for me