# File lib/cgikit/handler.rb, line 227 def url( context, path = nil, query = {}, is_secure = false, port = nil ) str = application_path(context.request, is_secure, port) str << "/#{@application.component_request_handler_key}" if context.session.store_in_url then str << "/#{context.session.session_id}" end str << "/#{context.context_id}" str << "/#{path}" if path qstr = query_string(query) unless qstr.empty? then str << "?#{qstr}" end str end