New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple query string parameters resulting in Router failure #1766

Closed
ghofman2 opened this Issue Dec 14, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@ghofman2
Copy link

ghofman2 commented Dec 14, 2018

I have multiple working examples in my current project of retrieving 1 query parameter from the url however when trying to follow the same convention for multiple query string params, I'm receiving the following error in the chrome debugger console:

Error: System.InvalidOperationException: 'Router' cannot find any component with a route for '/confirmemail'.

my page route is defined as:

@page "/confirmemail/{Token}/{UserId}"

and the @functions{...} section contains the following properties:

[Parameter] string Token { get; set; }

[Parameter] string UserId { get; set; }

I am trying to retrieve the query string parameters for a url that looks like this:

http://localhost:50466/confirmemail?Token=SomeReallyLargeToken&UserId=SomeGuidUserId

Is this currently supported? I wasn't able to find a related issue or any documentation on achieving this (other than the docs on using a single query string parameter)

@ghofman2 ghofman2 closed this Dec 15, 2018

@danroth27

This comment has been minimized.

Copy link
Member

danroth27 commented Dec 15, 2018

@ghofman2 Did you mean to close this? Did you figure out your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment