This project is archived and is in readonly mode.

#979 ✓wontfix
netshade

compute_public_path adds an extension to a source w/ a querystring

Reported by netshade | September 5th, 2008 @ 07:06 PM

compute_public_path in ActionView::Helpers::AssetTagHelper adds an extension (.js, .css, etc.) to a source that was supplied with a querystring, so this:


  <%= javascript_src_tag "http://fakedomain/foo?some_val=1" %>

looks like


  <script type="text/javascript" src="http://fakedomain/foo?some_val=1.js"></script>

Attached is a patch that inserts an existence check for "?" before adding the extension.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages