URL changes, the trailing slash is striking again

Lukas Renggli renggli at gmail.com
Thu Feb 15 16:49:33 UTC 2007


> Instead I am hacking this (ugly too but not as much) in
> WAUrl>>pathString for the trailing slash.
>         (path last includes: $.) ifFalse: [stream nextPut: $/]

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 :-/

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch



More information about the Squeak-dev mailing list