[dancer-users] return_url => request->path [Dancer::Plugin::Auth::Extensible]

Nick Knutov mail at knutov.com
Mon Jun 3 23:45:44 BST 2013


I think there is already my issue about it in github.
I'm using this solution:

hook 'before' => sub {
	# when running under Apache/mod_fastcgi
	request->{env}->{SCRIPT_NAME} = '';
	...
};


04.06.2013 3:00, Henk van Oers пишет:
> I am building an app with Dancer::Plugin::Auth::Extensible
> Apache deployment like this:
>         AddHandler fastcgi-script .fcgi
>         RewriteEngine On
>         RewriteCond %{REQUEST_FILENAME} !-f
>         RewriteRule ^(.*)$ /dispatch.fcgi/$1 [QSA,L]
> 
> I do not want the SCRIPT_NAME
> but I do want the query_string "?foo=bar"
> in the return_url.
> 
> Changing "request->path" into "request->request_uri"
> does it for me.
> 
> Is this the "right" patch?

-- 
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130


More information about the dancer-users mailing list