arrow_back Back to Tickets

Ticket #e23eb8

completed

Problem

http://165.232.48.178/zfrikadev/Kenya if I try to click on a category to make a new post, it asks to login again -kangi.

Creator

kangi

Priority

1

Urgent

urgent

Important

important

Project Name

customer feedback zfrika

Next Steps

user is in /zfrikadev/accountant?country=sxxxx ->if they select "New". check if they are logged in. If they are logged in then take them to "Post" if they are not logged in take them to login. in the href = create a function that checks if datatoken is defined if datatoken is defined. then

Solution

function checkstatus_before_redirect(){ datatoken= sessionStorage.getItem('datatoken'); if(datatoken) { console.log("dataoken found--1"); window.location.href = "http://165.232.48.178/zfrikadev/addnewpost/"+datatoken; } else { console.log("datatoken not found--1"); window.location.href = "http://165.232.48.178/zfrikadev/login"; } } <a onclick="checkstatus_before_redirect(); return true;"

Ticket Information

Ticket ID: 69445283df2473a6c8e23eb8
Date Initiated: 12/18/2025, 7:13:00 PM
Date Resolved: 1/4/2026, 2:40:00 PM
Status: completed
Urgent: urgent
Important: important
Created: 12/18/2025, 11:14:11 AM
Last Updated: 1/4/2026, 2:41:08 PM