[Seaside] No error when accessing a URL such as
http://localhost/seasideappname instead of
http://localhost/seaside/appname
Yar Hwee Boon
hboon at motionobj.com
Tue Feb 1 18:39:53 CET 2005
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
More information about the Seaside
mailing list