[Seaside] No error when accessing a URL such as
http://localhost/seasideappname instead of
http://localhost/seaside/appname
Avi Bryant
avi.bryant at gmail.com
Sat Feb 5 20:23:53 CET 2005
Thanks, incorporated. I've just moved most of my packages to
SqueakSource, so you can grab the latest from
http://kilana.unibe.ch:8888/Seaside .
Avi
On Wed, 2 Feb 2005 01:39:53 +0800, Yar Hwee Boon <hboon at motionobj.com> wrote:
> When accessing a URL such as http://localhost/seasideappname instead of
> http://localhost/seaside/appname, it still works instead of showing an
> error. Doesn't seems to be fixed in the latest version. Here's a simple
> fix:
>
> WADispatcher>>handlerForRequest: aRequest
> | path name |
> path := aRequest url.
> (path beginsWith: basePath)
> ifTrue: [| relativePath |
> relativePath := path allButFirst: basePath size.
> (relativePath notEmpty
> and: [relativePath first = $/])
> ifTrue: [name := (relativePath findTokens: '/')
> at: 1
> ifAbsent: []].
> entryPoints
> at: name
> ifPresent: [:n | ^ n]].
> ^ WANotFoundHandler new
> --
> HweeBoon
> MotionObj
> (65) 6764-9774
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>
More information about the Seaside
mailing list