We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9d604 commit 8641241Copy full SHA for 8641241
src/npm-fastui/src/events.ts
@@ -38,10 +38,14 @@ export function useFireEvent(): { fireEvent: (event?: AnyEvent) => void } {
38
}
39
case 'go-to':
40
if (event.url) {
41
+ let url = event.url
42
+ if (event.query) {
43
+ url += '?' + new URLSearchParams(event.query as Record<string, string>).toString()
44
+ }
45
if (event.target) {
- window.open(event.url, event.target)
46
+ window.open(url, event.target)
47
} else {
- location.goto(event.url)
48
+ location.goto(url)
49
50
51
if (event.query) {
0 commit comments