@@ -798,6 +798,15 @@ document.addEventListener('alpine:init', function() {
if (r.ok) { this.githubLinked = false; }
} catch(e) {}
},
+ closeSettings() {
+ // Go back to previous page, skipping any hash-only navigation
+ if (document.referrer && document.referrer.includes('/settings')) {
+ // Came from another settings tab — use history until we leave settings
+ history.go(-2);
+ } else {
+ history.back();
+ }
+ },
};
});
});
diff --git a/app/templates/workspaces.html b/app/templates/workspaces.html
index ed97241..508e107 100644
--- a/app/templates/workspaces.html
+++ b/app/templates/workspaces.html
@@ -88,7 +88,7 @@