diff --git a/src/app/folder-viewer/page.tsx b/src/app/folder-viewer/page.tsx index 27023d3..21c2e3d 100644 --- a/src/app/folder-viewer/page.tsx +++ b/src/app/folder-viewer/page.tsx @@ -123,7 +123,7 @@ const FolderViewerPage = () => { const handleBackClick = () => { const parentPath = getParentPath(path || ''); if (parentPath) { - router.push(`/folder-viewer?path=${parentPath}`); + router.push(`/folder-viewer?path=${encodeURIComponent(parentPath)}`); } else { router.push('/folder-viewer'); } @@ -133,7 +133,7 @@ const FolderViewerPage = () => { if (breadcrumbPath === '') { router.push('/folder-viewer'); } else { - router.push(`/folder-viewer?path=${breadcrumbPath}`); + router.push(`/folder-viewer?path=${encodeURIComponent(breadcrumbPath)}`); } }; diff --git a/src/components/sidebar.tsx b/src/components/sidebar.tsx index 075d9c0..9d154de 100644 --- a/src/components/sidebar.tsx +++ b/src/components/sidebar.tsx @@ -118,7 +118,7 @@ const SidebarContent = () => {