diff -ru shooting_star-3.2.3.orig/lib/shooting_star/server.rb shooting_star-3.2.3/lib/shooting_star/server.rb --- shooting_star-3.2.3.orig/lib/shooting_star/server.rb 2007-09-19 00:43:58.656250000 +0900 +++ shooting_star-3.2.3/lib/shooting_star/server.rb 2007-09-19 00:44:07.484375000 +0900 @@ -237,8 +237,9 @@ # make xhr client connect us. def make_xhr_connection(path) + path_prefix = ShootingStar::CONFIG.server.prefix # correction for path prefix assets = URI.parse(@params['execute']) - assets.path = '/javascripts/prototype.js' + assets.path = "#{path_prefix}/javascripts/prototype.js" # correction for path prefix assets.query = assets.fragment = nil query = @query.sub(%r[\&sig=\d+], '') + '&__s__=0' query += "&" + FormEncoder.encode(:event => :init, :type => :xhr) diff -ru shooting_star-3.2.3.orig/vendor/plugins/meteor_strike/lib/meteor_strike/helper.rb shooting_star-3.2.3/vendor/plugins/meteor_strike/lib/meteor_strike/helper.rb --- shooting_star-3.2.3.orig/vendor/plugins/meteor_strike/lib/meteor_strike/helper.rb 2007-09-19 00:16:18.000000000 +0900 +++ shooting_star-3.2.3/vendor/plugins/meteor_strike/lib/meteor_strike/helper.rb 2007-09-19 00:49:31.171875000 +0900 @@ -27,6 +27,12 @@ shooting_star_uri = [subdomain, shooting_star_uri].join('.') end uri = url_for(:only_path => false).split('/')[0..2].join('/') + + # correction for path prefix + if config.has_key?('prefix') + uri << config['prefix'] + end + uid = options[:uid] ? options[:uid].to_s : '' escaped_uid = CGI.escape(uid) tags = options[:tag] || [] diff -ru shooting_star-3.2.3.orig/vendor/plugins/meteor_strike/views/flash.rhtml shooting_star-3.2.3/vendor/plugins/meteor_strike/views/flash.rhtml --- shooting_star-3.2.3.orig/vendor/plugins/meteor_strike/views/flash.rhtml 2007-09-19 00:16:18.000000000 +0900 +++ shooting_star-3.2.3/vendor/plugins/meteor_strike/views/flash.rhtml 2007-09-19 01:15:34.125000000 +0900 @@ -1,4 +1,5 @@ <% + config = Meteor::config # correction for path prefix flash_code_base = ['http://fpdownload.macromedia.com/', 'pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'].join('') swf_path = File.join(RAILS_ROOT, 'public/meteor_strike.swf') @@ -9,12 +10,14 @@ id="meteor_strike_<%= @meteor_strike %>"> <param name="allowScriptAccess" value="sameDomain" /> <param name="FlashVars" value="<%= flash_vars %>" /> - <param name="movie" value="/meteor_strike.swf?<%= swf_timestamp %>" /> + <%- # correction for path prefix -%> + <param name="movie" value="<%= config['prefix'] %>/meteor_strike.swf?<%= swf_timestamp %>" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="devicefont" value="true" /> <param name="bgcolor" value="#ffffff" /> - <embed src="/meteor_strike.swf?<%= swf_timestamp %>" menu="false" + <%- # correction for path prefix -%> + <embed src="<%= config['prefix'] %>/meteor_strike.swf?<%= swf_timestamp %>" menu="false" quality="high" devicefont="true" bgcolor="#ffffff" width="300" height="300" swLiveConnect="true" id="meteor_strike_<%= @meteor_strike %>" name="meteor_strike_<%= @meteor_strike %>" flashvars="<%= flash_vars %>"