go() query string repetition bug
See original GitHub issueI’m having an issue:
- Give an expressive description of what is went wrong
Before I realized I can just call FlowRouter.setQueryParam(), I was running code that repeatedly (in my case, each time I would click a button), results in the query string param ‘test’ being repeated on the URL:
const route = FlowRouter.current()
const qs = {...route.queryParams} // clone
qs.test = 1
FlowRouter.go(
route.path,
{...route.params}, // clone
qs
)
Shouldn’t this be like calling setQueryParam()? Instead it results in the current path etc but adds ?test=1?test=1?test=1...
to the URL. I would expect /path?test=1
- Version of
flow-router-extra
you’re experiencing this issue
3.7.5
- Version of
Meteor
you’re experiencing this issue
2.0
- Browser name and its version (Chrome, Firefox, Safari, etc.)?
Chrome Version 96.0.4664.110 (Official Build) (64-bit)
- Platform name and its version (Win, Mac, Linux)? Windows 10 20H2
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
strings: negative Repeat count #36 - jamiealquiza/tachymeter
I keep running into the following error when using sangrenel (which is ... .com/jamiealquiza/tachymeter/tachymeter.go:271 +0x2a6 main.main() ...
Read more >Retaining GET request query string parameters on JSF form ...
I need that, on click, the generateMethod() method is executed, and after it's done, the user is redirected to the generated.xhtml page. What's ......
Read more >String functions | BigQuery - Google Cloud
The repetitions parameter specifies the number of times to repeat original_value . Returns NULL if either original_value or repetitions are NULL . This...
Read more >The Go Programming Language Specification
Repetition = "{" Expression "}" . Productions are expressions constructed from terms and the following operators, in increasing precedence: | ...
Read more >Creating URL query strings in Python
Creating a create_styled_marker() function. I'm going to skip the full explanation, or bother even creating what I consider to be the best real-world ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good for us @dr-dimitru. Thanks for the quick buck fix and for all you work.
@zeearth seems like I finally caught this one, try running on updated
v3.8.1
. lmk