question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

go() query string repetition bug

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zeearthcommented, Jun 27, 2022

Good for us @dr-dimitru. Thanks for the quick buck fix and for all you work.

1reaction
dr-dimitrucommented, Jun 17, 2022

@zeearth seems like I finally caught this one, try running on updated v3.8.1. lmk

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found