File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/(protected)/dashboard Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export default async function DashboardPage({
7171 sp . set ( 'library_id' , libID [ 0 ] )
7272 }
7373
74- redirect ( '?' + sp . toString ( ) )
74+ redirect ( '?' + sp . toString ( ) , RedirectType . replace )
7575 }
7676
7777 const [ res , libsRes ] = await Promise . all ( [
@@ -100,7 +100,7 @@ export default async function DashboardPage({
100100 const sp = new URLSearchParams ( p )
101101 sp . set ( 'library_id' , libraryID )
102102
103- redirect ( '/dashboard?' + sp . toString ( ) )
103+ redirect ( '/dashboard?' + sp . toString ( ) , RedirectType . replace )
104104 }
105105
106106 const fromDate = parse ( from , 'dd-MM-yyyy' , new Date ( ) )
@@ -116,7 +116,7 @@ export default async function DashboardPage({
116116 if ( range . from ) sp . set ( 'from' , format ( range . from , 'dd-MM-yyyy' ) )
117117 if ( range . to ) sp . set ( 'to' , format ( range . to , 'dd-MM-yyyy' ) )
118118
119- redirect ( '/dashboard?' + sp . toString ( ) )
119+ redirect ( '/dashboard?' + sp . toString ( ) , RedirectType . replace )
120120 }
121121
122122 return (
You can’t perform that action at this time.
0 commit comments