Forum OpenACS Q&A: Response to ad_return_template

Collapse
Posted by Tom Jackson on

Actually what happens for a recent version of OACS is that if both page.tcl and page.adp exist, then either page.tcl or page work the same. However, a request for page.adp returns file not found, and page.html, which does not exist returns a directory listing of the webserver pageroot: /web/server/www/. Sometimes other directories are returned.

What would be nice is if the ending didn't matter and was ignored in the usual case. In the case that page.xxx is requested and the adp and tcl file exist, it should process the pair as a template example. A redirect would be complicated, because it might be a post.