URL changes, the trailing slash is striking again

Philippe Marschall philippe.marschall at gmail.com
Thu Feb 15 18:12:57 UTC 2007


2007/2/15, Lukas Renggli <renggli at gmail.com>:
> > I guess in this case it is better to restore the old code and not
> > depend on hacks that might or might not work:
> >
> > WAUrl>>pathString
> >         ^ String streamContents: [ :stream |
> >                 stream nextPut: $/.
> >                 path
> >                         do: [ :each | stream nextPutAll: each ]
> >                         separatedBy: [ stream nextPut: $/ ] ]
> >
> > We always have apache running anyway, so that it canrewrite the
> > tailing-slashes if necessary :-/
>
> I just reverted that change in the latest version to the state it was
> before I first touched it ;-)

Why don't we differentiate between directories in the path and the
(optional) file at the end of the path? Slashes only after the
authority and every directory in the path. Wouldn't that just solve
it?

Cheers
Philipe



More information about the Squeak-dev mailing list