From 2b7325655bc9a24dd4ba6294ea84639f09892dd8 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Wed, 5 Feb 2025 20:04:03 -0500 Subject: [PATCH] Fix dumb use of non-platform agnostic separator (#5279) Co-authored-by: Pierre Jacquier --- src/components/Settings/AllSettingsFields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Settings/AllSettingsFields.tsx b/src/components/Settings/AllSettingsFields.tsx index 27d9a3637..4251ef803 100644 --- a/src/components/Settings/AllSettingsFields.tsx +++ b/src/components/Settings/AllSettingsFields.tsx @@ -48,7 +48,7 @@ export const AllSettingsFields = forwardRef( isFileSettings && isDesktop() ? decodeURI( location.pathname - .replace(PATHS.FILE + '/', '') + .replace(PATHS.FILE + window.electron.sep, '') .replace(PATHS.SETTINGS, '') .slice( 0,