diff --git a/app/templates/settings.html b/app/templates/settings.html index 2aef013..6e8d413 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -81,7 +81,7 @@
- +
@@ -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 @@
Connect your Gitea account to see your projects.
- 🔗 Connect Gitea + 🔗 Connect Gitea or 📝 Register with Gitea