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

Henk van Oers hvo.pm at xs4all.nl
Mon Jun 3 22:00:15 BST 2013


Users of DPAE,

---- %<----
$ grep request Extensible.pm
return redirect uri_for($loginpage, { return_url => request->path });
return redirect uri_for($loginpage, { return_url => request->path });
return redirect uri_for($deniedpage, { return_url => request->path });
This is developed on GitHub - please feel free to raise issues or pull requests
---- >%----

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?

-- 
Henk


More information about the dancer-users mailing list