diff --git a/lang/es.json b/lang/es.json
index a78bfb53..65ba4436 100644
--- a/lang/es.json
+++ b/lang/es.json
@@ -2186,6 +2186,7 @@
"No thanks": "No, gracias",
"AI suggestions need more data": "Las sugerencias de IA necesitan más datos",
"Once you have at least :count transactions, you can generate rule suggestions from Settings → Automation rules.": "Cuando tengas al menos :count transacciones, podrás generar sugerencias de reglas desde Ajustes → Reglas de automatización.",
+ "We couldn’t check which transactions match.": "No hemos podido comprobar qué transacciones coinciden.",
"We couldn’t finish importing right now": "No hemos podido terminar la importación",
"We couldn’t generate suggestions": "No pudimos generar sugerencias",
"Something went wrong. You can try again or skip for now.": "Algo salió mal. Puedes intentarlo de nuevo u omitirlo por ahora.",
@@ -2215,6 +2216,7 @@
"or": "o",
"Create rule": "Crear regla",
"Ignore rule": "Ignorar regla",
+ "? matches": "? coincidencias",
":count matches": ":count coincidencias",
"Flex Web Service Token": "Token del Flex Web Service",
"Flex Query ID": "Query ID de Flex",
diff --git a/resources/js/app.tsx b/resources/js/app.tsx
index fb2b4049..9201d2b1 100644
--- a/resources/js/app.tsx
+++ b/resources/js/app.tsx
@@ -26,11 +26,13 @@ import { SyncProvider } from './contexts/sync-context';
import { initializeTheme } from './hooks/use-appearance';
import { initializeChartColorScheme } from './hooks/use-chart-color-scheme';
import { installChunkLoadRecovery } from './lib/chunk-load-recovery';
+import { leavePage } from './lib/leave-page';
import { initializePostHog } from './lib/posthog';
import {
isBrowserExtensionNoise,
isChunkLoadErrorEvent,
isFacebookInAppBrowserJavaBridgeNoise,
+ isPageLeaveAbortNoise,
isPostMessageDataCloneNoise,
isSafariCashbackExtensionNoise,
} from './lib/sentry';
@@ -49,6 +51,7 @@ Sentry.init({
beforeSend(event) {
if (
isChunkLoadErrorEvent(event) ||
+ isPageLeaveAbortNoise(event) ||
isBrowserExtensionNoise(event) ||
isPostMessageDataCloneNoise(event) ||
isFacebookInAppBrowserJavaBridgeNoise(event) ||
@@ -110,7 +113,7 @@ function showExpiredConnectionsToast(
action: {
label: __('Reconnect'),
onClick: () => {
- window.location.href = firstConnection.reconnect_url;
+ leavePage(firstConnection.reconnect_url);
},
},
},
diff --git a/resources/js/components/app-error-boundary.tsx b/resources/js/components/app-error-boundary.tsx
index 4c93848a..c2c225e8 100644
--- a/resources/js/components/app-error-boundary.tsx
+++ b/resources/js/components/app-error-boundary.tsx
@@ -1,5 +1,6 @@
import { Button } from '@/components/ui/button';
import { reloadOnChunkLoadError } from '@/lib/chunk-load-recovery';
+import { leavePage, reloadPage } from '@/lib/leave-page';
import { getStorage } from '@/lib/safe-storage';
import { dashboard } from '@/routes';
import { __ } from '@/utils/i18n';
@@ -49,7 +50,7 @@ export function AppErrorBoundary({ children }: { children: ReactNode }) {
*/
function AppErrorFallback() {
useEffect(() => {
- const reload = () => window.location.reload();
+ const reload = reloadPage;
window.addEventListener('popstate', reload);
@@ -69,14 +70,12 @@ function AppErrorFallback() {
-
+