But also this may not work at all because the fragment is normally not
passed to the backend, and is only used for javascript.

On Sat, Nov 28, 2015 at 4:13 PM, Dan Book <[email protected]> wrote:

> That is the fragment, which you can access as $c->req->url->fragment. If
> you want to parse it like query parameters you could do something like my
> $params = Mojo::Parameters->new($c->req->url->fragment);
>
> On Sat, Nov 28, 2015 at 4:08 PM, Jason D <[email protected]> wrote:
>
>> I'm trying to connect to a site using this Oauth2 plugin
>> https://metacpan.org/pod/Mojolicious::Plugin::OAuth2
>>
>>  have a '/connect' route that makes the request to the site for user
>> access.
>>
>> The site then redirects back to '/got' route and sends the url params
>> that I need -- access token and user id.  The problem is that I have no
>> idea how to access these params.  None of the normal methods seem to work.
>>
>> I think the problem is in the request url.  It's in this form:
>> '/got/#param1=XXXXX&param2=XXXXXX'
>>
>> If I change the '#' to a '?'  I have no problem accessing the params
>> using the param method.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to