Resolve a ticket from a task table saved as a favorite, it no longer takes you back to previous page

wefw
Tera Contributor

Hi,

 

I resolve a task from the filters saved, it is redirecting back to the home page rather than the same favorites table i have chosen.

I would want to navigate back to the table from my favorites than the homepage.

 

for example, if we open a task from "My Tasks: Open" (saved as Favorite) and then resolve it, it doesn't take you back to the "My Tasks: Open" list. it's taking to homepage. we now have to open the task into a new tab and resolve it in the new tab, then you still have the task list open in another tab etc.
If the filter is changed on the favourite, then it fixes the issue? Please can this be looked into as to why it is happening?

 

1 ACCEPTED SOLUTION

Hello @wefw ,

 

Thanks for the update. Yes, that's exactly what I was expecting to find in the bookmark URL. 

 

"sysparm_nostack" prevents the page (in your case the list of open tasks reached from the bookmark) from being added to the navigation stack. Updating the task would normally cause the system tor return to the last page on the stack but since it is not added you are seeing this behavior.

 

So the bookmark would need to be updated to not have that "sysparm_nostack=true" component in the URL. Then the issue should be gone.

 

Regards,

Robert

View solution in original post

10 REPLIES 10

Robert H
Mega Sage

Hello @wefw ,

 

Please show us the script of the UI Action that you use for resolving the tasks.

 

Regards,

Robert

wefw
Tera Contributor

wefw_0-1745232707340.png

This is only happening for favorites list.
If we opening normally and resolving the task then it is working fine, as it is taking to list view. But when we opening task from Favorites

wefw_1-1745232850295.png

selecting a task in same page and resolving then it is not taking back to list view. it's taking to homepage

Hello @wefw ,

 

Please add one more line to your updateTask function:

 

function updateTask() {
    current.state = 8;
    current.update();
    action.setRedirectURL(current);
}

 

Regards,

Robert 

wefw
Tera Contributor

Hi Robert it's not going to previous page which is My Task Open List view. Here after adding the line and resolving the task its staying in same page