fix: corretto issue 20 e 28. torna alla lista rimanda alla lista e non più alla pagina precedente e i link non aprono più una nuova scheda

This commit is contained in:
2026-07-13 19:34:44 +02:00
parent afe6e8d652
commit 7020112e8a
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -15,6 +15,7 @@ const App = {
motivationalPhrases: [],
drafts: {},
tabs: [],
lastListView: '#/tickets',
loadTabs() {
try {
@@ -232,6 +233,10 @@ const App = {
const hash = fullHash.split('?')[0];
const titleEl = document.getElementById('page-title');
if (hash === '#/tickets' || hash === '#/tickets/my') {
this.lastListView = hash;
}
// Save draft for previous ticket before routing
if (typeof TicketDetailView !== 'undefined' && TicketDetailView.ticketId) {
TicketDetailView.saveDraft();