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.

LuigiClient.linkManager().navigate() doesn't send query parameters

See original GitHub issue

Description

Using LuigiClient.linkManager().navigate("/some/path?param=test) with path that contains query parameters isn’t working

Is this expected behavior or not? If this is the expected it would be great to have a note in the documentation that is not supported.

I have seen that in the Navigate with Intent it accepts “hash” so I assumed it also accepted query params linkManager().navigate('/#?intent=Sales-settings?project=pr2&user=john')

Expected result

navigate to new page with URL: <host>/some/path?param=test

Actual result

Query param is not send

<host>/some/path

Steps to reproduce

call navigate with query param

Troubleshooting

I am thinking of using addCoreSearchParams

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ndricimrrcommented, Apr 21, 2022

Hi @AlexandarNaydenov , I see your point, I just checked the difference and it seems indeed that the add(get)NodeParams function does not decode properly. I will investigate this further on, and let you know.

1reaction
AlexandarNaydenovcommented, Apr 21, 2022

@ndricimrr Hi, the storageManager will not work in my case because I wanted to change the url so it could be saved or sent to someone else and he arrived at the same page. And that can not be done with local storage.

Currently we are using CoreSearchParams, but I have understood that NodeParams is more the “Luigi way” for our case. With addCoreSearchParams and getCoreSearchParams decoding is working perfectly and I would expect addNodeParams and getNodeParams to behave the same. Is it an expected behavior of nodeParams encoding to work differently from coreSearchParams`s one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

luigi-client-api
Returns the node parameters of the active URL. Node parameters are defined like URL query parameters but with a specific prefix allowing Luigi...
Read more >
Angular router navigate doesn't load page when query ...
I want to add a dropdown box so the list can be filtered but I can't seem to get the page to reload...
Read more >
Use the open-source micro-front-end framework Luigi to ...
Contexts-Contexts are Luigi parameters that allow you to pass objects to the micro frontend. Views-Views, another name for the micro front end.
Read more >
Plugins - DokuWiki
The installation can be done automatically by search and install the plugin via the extension manager. A plugin could be manually installed by...
Read more >
WordPress - Installatron
Installatron for WordPress is a one-click solution to install and manage WordPress websites. Deploy a free WordPress blog instantly and discover just how ......
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