I'm setting like below to mount my application as subcontents of our website.
server.webpath = "/myapp"
When I visit to "localhost:8080/" instead of "localhost:8080/myapp/",
the NotFound? error appears on console or file. But my web browser gets content which it had be shown without "server.webpath" setting.
It should be HTTP error of 404.
Even if developers forget ${tg.url(...)}, it might not be noticed while running with local computer.
In VirtualPathFilter? of /turbogears/startup.py, I found that you don't want to show content in this case.
141: raise cherrypy.NotFound(path)
But any exception from "on_start_resource" handler is not treated in CherryPy?2.2.1. The first handler that can handle exceptions is "before_request_body".
I propose this patch for startup.py :
132c132
< def before_request_body(self):
---
> def on_start_resource(self):