[dancer-users] Should get '/projects/' => also handle /projects redirecting to /projects/

Yitzchak Scott-Thoennes sthoenna at gmail.com
Wed Feb 4 00:09:28 GMT 2015

On Tue, Feb 3, 2015 at 2:50 PM, Warren Young <wyml at etr-usa.com> wrote:
> This is broken, IMHO, as it violates the expectations of anyone coming from a world where URL components are matched the same way as static files.  That is to say:
>     http://example.com/foo
> and
>     http://example.com/foo/
> will both serve $DocumentRoot/foo/index.{html,php,asp,whatever}.

No, typically the former will just redirect to the latter.  If you
don't, the base url for relative links will be wrong.

That's why Gabor is IIUC suggesting doing the redirect automatically
(I would hope with a way to override it).

More information about the dancer-users mailing list