File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ const Random: FC = () => {
9191
9292 let nextUrl = `/problems/${ allQuestions [ i ] . titleSlug } /`
9393 if ( favorite !== 'all' ) nextUrl += `?favorite=${ favorite } `
94- routerTo ( nextUrl )
94+ routerTo ( nextUrl , false )
9595 }
9696
9797 return (
Original file line number Diff line number Diff line change @@ -308,10 +308,10 @@ export const problemsetPageIsLoad = async (): Promise<boolean> => {
308308 return getComputedStyle ( hr ) [ 'visibility' ] === 'visible'
309309}
310310
311- export function routerTo ( url : string ) : void {
311+ export function routerTo ( url : string , shallow = true ) : void {
312312 const next = ( window as any ) . next
313313 if ( ! next ) return
314- next . router . push ( url , undefined , { shallow : true } )
314+ next . router . push ( url , undefined , { shallow } )
315315}
316316
317317export function setRef < T > ( el : T , ref ?: React . Ref < T > ) : void {
You can’t perform that action at this time.
0 commit comments