Fix the back buttons (navigate back if you can but close if it was a new window).

This commit is contained in:
2025-12-02 18:02:02 +00:00
parent 2699aaa472
commit 643d9bafab
5 changed files with 12 additions and 16 deletions
+2 -1
View File
@@ -64,7 +64,7 @@
<button
type="button"
class="btn-secondary"
@click="history.back()"
@click="goBack"
>
Back
</button>
@@ -100,6 +100,7 @@ import RegistrationLinkModal from '@/components/RegistrationLinkModal.vue'
import { useAuthStore } from '@/stores/auth'
import { adminUiPath, makeUiHref } from '@/utils/settings'
import passkey from '@/utils/passkey'
import { goBack } from '@/utils/helpers'
const authStore = useAuthStore()
const updateInterval = ref(null)