LuigiClient.linkManager().navigate() doesn't send query parameters
See original GitHub issueDescription
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:
- Created a year ago
- Comments:9 (5 by maintainers)
Top 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 >
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 Free
Top 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
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.
@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 expectaddNodeParams and getNodeParams
to behave the same. Is it an expected behavior of nodeParams encoding to work differently from coreSearchParams`s one?