Skip to content

Commit

Permalink
fix: adjusted nextjs Router behaviour and do not use as
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed May 18, 2022
1 parent 6a05792 commit bd7bcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/adapters/NextJs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export const GeschichteForNextjs: FC<Props> = ({
},
push: (next: string, options) => {
const [path] = split(Router.asPath)
Router.push(Router.route, `${path}${next}`, {
Router.push(`${path}${next}`, undefined, {
...defaultPushOptions,
...options,
})
},
replace: (next: string, options) => {
const [path] = split(Router.asPath)
Router.replace(Router.route, `${path}${next}`, {
Router.replace(`${path}${next}`, undefined, {
...defaultReplaceOptions,
...options,
})
Expand Down

0 comments on commit bd7bcaf

Please sign in to comment.