This project is archived and is in readonly mode.

#1664 ✓resolved
MatthewRudy

javascript_include_tag shouldn't append a ".js" onto external urls

Reported by MatthewRudy | December 29th, 2008 @ 05:52 PM | in 2.x

the problem


javascript_include_tag("http://www.google.com/jsapi")
=> %(<script type="text/javascript" src="http://www.google.com/jsapi.js"></script>)

but that url isn't valid.

If we've specified an external url, then we should also have specified the extension if there is one.

All the tests seem to pass, and I don't seem to have broken the external asset-host functionality.

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>

Referenced by

Pages