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.

Cannot pass url query params anymore for all pages in v5

See original GitHub issue

It used to be possible to fetch query params in the base of the project, as described here:

https://docs.keycloakify.dev/context-persistence

This worked fine for all pages in v4. With v5, it does work for the login page, but it does not work, for example, for the update password page. This is because the page is redirected to: http://localhost:6080/realms/test/login-actions/required-action?execution=UPDATE_PASSWORD&client_id=fridge-backoffice-react&tab_id=roGd4uDW5as before I’m able to get the query params from the URL.

This this a bug or is there some workaround? Thank you for the help.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
JimVanEedencommented, Jun 7, 2022

Alright I see now that I can only access the query params in the login page and not the other ones. Using the local storage should indeed solve the problem for the other pages. Thank you for your great responses.

0reactions
garronejcommented, Jun 8, 2022

@JimVanEeden you are welcome,
If you want to help me advance my opensourcer career, you can suggest me for this GitHub program.
Not an obligation whatsoever 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get parameter value from query string? - Stack Overflow
React Router already parses the location for you and passes it to your RouteComponent as props. You can access the query (after ?...
Read more >
Navigate to a URL with Query Strings (Search Params) in ...
Navigate to a URL with Query Strings (Search Params) in React Router ... But this doesn't allow us to specify any search params...
Read more >
Query string - Wikipedia
A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes...
Read more >
URLSearchParams - Web APIs - MDN Web Docs
Chrome Edge URLSearchParams Full support. Chrome49. Toggle history Full support. Edge... @@iterator Full support. Chrome49. Toggle history Full support. Edge... URLSearchParams() constructor Full support. Chrome49. Toggle...
Read more >
How to Exclude Query String Parameters from Google ... - Elevar
No more duplicate page URLs in your reports that drive you crazy and require manual roll up! ... Option 1: Create Filter to...
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