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.

Question Marks in URL for State

See original GitHub issue

It looks like quotation marks are not allowed in the string being passed to initImplicitFlow() to keep track of state. We are looking to pass in the requested URL along with its query parameters and it looks like it errors out when we add in the ?.

Example: this.oauthService.initImplicitFlow('http://www.xyz.com/resource/sub?department=test');

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Mithradathacommented, Mar 25, 2019

I was able to work-around this by “custom-encoding” the original route:

public encodeOriginalRoute(uri: string): string {
    return uri.replace('?', '@@@');
}

public decodeOriginalRoute(uri: string): string {
    return uri.replace('@@@', '?');
}

Obviously, not the preferred solution, but it should work…

1reaction
kzettlmeiercommented, Sep 10, 2018

Thanks, we will go forward with the work around as its easy enough to use and probably should be used anyway since we are passing along an actual URL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of ? (question mark) in a URL string?
It is a query to pass paramters. ?pagename=navigation passes the value 'navigation' to the pagename parameter. Share.
Read more >
What does a question mark do in a URL? - Quora
A question mark is used to introduce a parameter list. If it's at the end, there are no parameters. Why does a question...
Read more >
How To Fix a URL Question Mark Issue - Sitechecker
In a URL, the question mark (“?”) divides the address of an object and the set of words used in the query. Consider...
Read more >
Is it valid to include digits and question marks in the URL slug ...
Using question marks in the slug is only allowed in their percent-encoded form. You may decide to omit this character (or all characters...
Read more >
Query string contains a question mark | Sitebulb
In a URL, the query starts with a question mark - the question mark is used as a separator, and is not part...
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