# File lib/cgikit.rb, line 348 def url baseurl = @application.baseurl locale = @application.locale master = @application.master_locale if target == nil then @target = @application.target end if ( secure and ( not baseurl =~ /^https:\/\//i ) ) then baseurl =~ /^http:\/\/(.*)/i if $1 then string = "https://#{$1}?" else string = "https://#{baseurl}?" end else string = "#{baseurl}?" end if target then string << "target=#{target}&" end if action then string << "action=#{action}&" end if master then string << "master_locale=#{master}&" end if locale then string << "locale=#{locale}&" end if oid then string << "oid=#{oid}&" end if query then string << query_string( query ) end string end