jbe/bsw@0: --[[-- jbe/bsw@0: request.set_absolute_baseurl( jbe/bsw@0: url -- Base URL of the application jbe/bsw@0: ) jbe/bsw@0: jbe/bsw@0: Calling this function is neccessary for every configuration, because an absolute URL is needed for HTTP redirects. If the URL of the application is volatile, and if you don't bother violating the HTTP standard, you might want to execute request.set_absolute_baseurl(request.get_relative_baseurl()) in your application configuration. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function request.set_absolute_baseurl(url) jbe/bsw@0: if string.find(url, "/$") then jbe/bsw@0: request._absolute_baseurl = url jbe/bsw@0: else jbe/bsw@0: request._absolute_baseurl = url .. "/" jbe/bsw@0: end jbe/bsw@0: end