PerlDancer / Dancer2

Perl Dancer Next Generation (rewrite of Perl Dancer)
http://perldancer.org/
Other
544 stars 274 forks source link

Add script_name to redirects beginning with / #1565

Closed nfg closed 3 years ago

nfg commented 3 years ago

Hey! I'm not sure if this is the best solution, but at least the test script shows the problem.

I thought about copying some of the logic from uri_for, but you guys deliberately removed it in the first place. This keeps the developer responsible for the actual location, but will prefix the path if necessary.

EDIT: This is a potential fix for #1564

nfg commented 3 years ago

Cool! Thanks for taking a look, @SysPete !

cromedome commented 3 years ago

:+1: merged... thank you!