We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed48a4 commit c26c226Copy full SHA for c26c226
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "effe-ts",
3
- "version": "0.4.0",
+ "version": "0.4.1",
4
"main": "lib/index.js",
5
"license": "MIT",
6
"author": "Malte Legenhausen <[email protected]>",
src/Navigation.ts
@@ -28,7 +28,10 @@ export interface NavigationHistory {
28
export function history(history: History): NavigationHistory {
29
return {
30
location: history.location,
31
- push: url => () => history.push(url),
+ push: url => () => {
32
+ const [pathname, search] = url.split('?')
33
+ history.push({ pathname, search })
34
+ },
35
back: () => history.back(),
36
listen: f => () => history.listen(f)
37
}
0 commit comments