This project is archived and is in readonly mode.
rewrite_asset_path should respect already existing query strings
-
CancelProfileIsBroken
- Tag changed from 2.3.2, asset_tag_helper to 2.3.2, asset_tag_helper, bugmash
-
John Pignata
-1 - rewrite_asset_path is private and probably shouldn't be enhanced directly without /good/ reason. The one call to this method I see is from compute_public_path which seems to not call this method if the string is URL-like. What problem is this bug report trying to solve?
-
Mike Enriquez
- I agree with John. I can't think of a use for a dynamic asset that would need a query string. More info would be helpful.
-
niko
We're using #compute_public_path for some downloadable assets, where the filename of the downloaded file must be different than the filename on the server. So the webpath looks like this:
/resources/audio/af/A%20nice%20Song.mp3?filename=af12345.mpga
Obviously we want the files served by our asset-servers.
I would really like it if #compute_public_path as well as #compute_asset_host and #rewrite_asset_path were public.
-
Rizwan Reza
- Tag changed from 2.3.2, asset_tag_helper, bugmash to 2.3.2, asset_tag_helper
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.